summaryrefslogtreecommitdiff
path: root/community/motion/rc.motion
diff options
context:
space:
mode:
Diffstat (limited to 'community/motion/rc.motion')
-rwxr-xr-xcommunity/motion/rc.motion3
1 files changed, 2 insertions, 1 deletions
diff --git a/community/motion/rc.motion b/community/motion/rc.motion
index 6ae95d17b..b6057744a 100755
--- a/community/motion/rc.motion
+++ b/community/motion/rc.motion
@@ -7,6 +7,7 @@ PID=`pidof -o %PPID /usr/bin/motion`
case "$1" in
start)
stat_busy "Starting Motion"
+ mkdir -p /var/run/motion
[ -z "$PID" ] && /usr/bin/motion
if [ $? -gt 0 ]; then
stat_fail
@@ -31,6 +32,6 @@ case "$1" in
$0 start
;;
*)
- echo "usage: $0 {start|stop|restart}"
+ echo "usage: $0 {start|stop|restart}"
esac
exit 0