You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
353 B

#!/bin/sh /etc/rc.common
START=94
USE_PROCD=1
PROG="/usr/bin/motion"
CONF="/etc/motion.conf"
start_service() {
local enabled
config_load "motion"
config_get_bool enabled "general" "enabled" 0
[ "$enabled" -gt 0 ] || return 1
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -c "$CONF"
procd_close_instance
}