summaryrefslogtreecommitdiff
path: root/package/motion
diff options
context:
space:
mode:
Diffstat (limited to 'package/motion')
-rw-r--r--package/motion/files/motion.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/motion/files/motion.init b/package/motion/files/motion.init
index 1c8b7e705..66115f67f 100644
--- a/package/motion/files/motion.init
+++ b/package/motion/files/motion.init
@@ -7,6 +7,7 @@ case $1 in
autostop) ;;
autostart)
test x"${motion:-NO}" = x"NO" && exit 0
+ test x"$motion" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)