mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
Add motion addon (Webcam server/recorder with motion detection)
This commit is contained in:
33
src/initscripts/init.d/motion
Normal file
33
src/initscripts/init.d/motion
Normal file
@@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting motion webcam server..."
|
||||
loadproc /usr/bin/motion
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping motion webcam server..."
|
||||
killproc /usr/bin/motion
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /usr/bin/motion
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/motion
|
||||
Reference in New Issue
Block a user