make sure the motioneye media directory exists at startup

This commit is contained in:
Calin Crisan 2016-03-03 20:58:24 +02:00
parent 62fe059eb7
commit a1c23de512
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,7 @@ conf="/data/etc/motioneye.conf"
motion_conf="/data/etc/motion.conf"
watch_timeout=120
dev_v4l_by_id="/dev/v4l/by-id/"
media_dir="/data/output"
if [ -f $sys_conf ] && ! [ -f $conf ]; then
cp $sys_conf $conf
@ -58,6 +59,8 @@ find_persistent_device() {
start() {
msg_begin "Starting motioneye"
mkdir -p $media_dir
meyectl startserver -b -c $conf -l
count=0

View File

@ -1,7 +1,6 @@
# disable wifi power management
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=1
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
options mwifiex disconnect_on_suspend=0
options rndis_wlan power_save=0
options b43 hwpctl=0
options ath6kl_core suspend_mode=1