mirror of
https://git.freebsd.org/ports.git
synced 2025-05-03 03:56:39 -04:00
- Address issues in rclint, portlint and the port test tool. - make sure scanbd.conf is a sample file. PR: 272066
30 lines
663 B
Bash
Executable file
30 lines
663 B
Bash
Executable file
#!/bin/sh
|
|
# PROVIDE: scanbd
|
|
# REQUIRE: DAEMON FILESYSTEMS LOGIN dbus
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable the service
|
|
# scanbd_enable (bool): Set to NO by default.
|
|
# Set to YES to enable scanbd.
|
|
# scanbd_config (path): set to %%PREFIX%%/etc/scanbd/scanbd.conf
|
|
# by default
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=scanbd
|
|
desc="Scanbd: Scan button Daemon"
|
|
rcvar=scanbd_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${scanbd_enable:=NO}
|
|
: ${scanbd_config="%%PREFIX%%/etc/scanbd/scanbd.conf"}
|
|
|
|
command_args="-c $scanbd_config"
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
|
|
run_rc_command "$1"
|
|
|