mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
make sure the motioneye media directory exists at startup
This commit is contained in:
parent
62fe059eb7
commit
a1c23de512
@ -5,6 +5,7 @@ conf="/data/etc/motioneye.conf"
|
|||||||
motion_conf="/data/etc/motion.conf"
|
motion_conf="/data/etc/motion.conf"
|
||||||
watch_timeout=120
|
watch_timeout=120
|
||||||
dev_v4l_by_id="/dev/v4l/by-id/"
|
dev_v4l_by_id="/dev/v4l/by-id/"
|
||||||
|
media_dir="/data/output"
|
||||||
|
|
||||||
if [ -f $sys_conf ] && ! [ -f $conf ]; then
|
if [ -f $sys_conf ] && ! [ -f $conf ]; then
|
||||||
cp $sys_conf $conf
|
cp $sys_conf $conf
|
||||||
@ -58,6 +59,8 @@ find_persistent_device() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
msg_begin "Starting motioneye"
|
msg_begin "Starting motioneye"
|
||||||
|
|
||||||
|
mkdir -p $media_dir
|
||||||
meyectl startserver -b -c $conf -l
|
meyectl startserver -b -c $conf -l
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# disable wifi power management
|
# 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 mwifiex disconnect_on_suspend=0
|
||||||
options rndis_wlan power_save=0
|
options rndis_wlan power_save=0
|
||||||
options b43 hwpctl=0
|
options b43 hwpctl=0
|
||||||
options ath6kl_core suspend_mode=1
|
options ath6kl_core suspend_mode=1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user