mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
Merge pull request #20 from jasaw/cp-boot-wpa-conf
Always copy /boot/wpa_supplicant.conf during startup
This commit is contained in:
commit
340fe4b1c5
@ -22,10 +22,17 @@ fi
|
|||||||
|
|
||||||
source $watch_conf
|
source $watch_conf
|
||||||
|
|
||||||
if ! [[ -f $conf ]]; then
|
|
||||||
if [[ -f $boot_conf ]]; then
|
if [[ -f $boot_conf ]]; then
|
||||||
cp $boot_conf $conf
|
cp -f $boot_conf $conf
|
||||||
elif [[ -f $sys_conf ]]; then
|
grep -E "/boot .*ro[\s,]" /proc/mounts
|
||||||
|
RO=$?
|
||||||
|
test $RO == 0 && mount -o remount,rw /boot
|
||||||
|
rm -f $boot_conf
|
||||||
|
test $RO == 0 && mount -o remount,ro /boot
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! [[ -f $conf ]]; then
|
||||||
|
if [[ -f $sys_conf ]]; then
|
||||||
cp $sys_conf $conf
|
cp $sys_conf $conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user