mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
S36ppp: use prepare_conf
This commit is contained in:
parent
e17e87f569
commit
6dff0a0ad1
@ -11,13 +11,7 @@ watch_conf="/data/etc/watch.conf"
|
|||||||
|
|
||||||
source $watch_conf
|
source $watch_conf
|
||||||
|
|
||||||
if ! [[ -d $conf ]]; then
|
prepare_conf $conf $sys_conf $boot_conf
|
||||||
if [[ -d $boot_conf ]]; then
|
|
||||||
cp -r $boot_conf $conf
|
|
||||||
elif [[ -d $sys_conf ]]; then
|
|
||||||
cp -r $sys_conf $conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
test -e $conf/modem || exit 0
|
test -e $conf/modem || exit 0
|
||||||
test -e $conf/apn || exit 0
|
test -e $conf/apn || exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user