mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
Zut alors, delete motion initiscript as well :-/
Signed-off-by: Peter Müller <peter.mueller@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
86f5f42f6b
commit
a0dbbb73a9
@@ -1,42 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting motion webcam server..."
|
||||
if [ ! -e /dev/video0 ]; then
|
||||
boot_mesg "Error! No video input device found."
|
||||
echo_failure
|
||||
#No 3 min wait
|
||||
exit 0;
|
||||
fi
|
||||
chown :video /dev/video*
|
||||
mkdir -p /var/motion/cam1
|
||||
chown -R video: /var/motion/cam1
|
||||
loadproc sudo -u video /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