From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH v2 05/11] Zut alors, delete motion initiscript as well :-/ Date: Mon, 17 May 2021 23:57:18 +0200 Message-ID: <18f02f8f-10f3-f5fe-87b0-42bcaae6df32@ipfire.org> In-Reply-To: <7cf1c835-9ac7-6f5c-5b07-a0ebba6dd93f@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8795452824770802329==" List-Id: --===============8795452824770802329== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- src/initscripts/packages/motion | 42 --------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 src/initscripts/packages/motion diff --git a/src/initscripts/packages/motion b/src/initscripts/packages/motion deleted file mode 100644 index f5fa9c677..000000000 --- a/src/initscripts/packages/motion +++ /dev/null @@ -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 -- 2.26.2 --===============8795452824770802329==--