mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
fix upgrade mode and script execution in rc.local.d
This commit is contained in:
@@ -1 +1 @@
|
||||
Thu Jul 14 04:01:23 PM PDT 2022
|
||||
Fri Jul 15 11:35:28 AM PDT 2022
|
||||
|
@@ -2,6 +2,10 @@
|
||||
|
||||
DEBUG=false
|
||||
|
||||
export WZMINI_CFG=/opt/wz_mini/wz_mini.conf
|
||||
|
||||
[ -f $WZMINI_CFG ] && source $WZMINI_CFG
|
||||
|
||||
if [ "$DEBUG" == "true" ]; then
|
||||
|
||||
if [ -L /dev/fd ]; then
|
||||
@@ -17,6 +21,11 @@ fi
|
||||
|
||||
set -x
|
||||
|
||||
if [[ "$DISABLE_FW_UPGRADE" == "true" ]]; then
|
||||
#Reboot as soon as we see "img", this means an update is incoiming
|
||||
reboot
|
||||
fi
|
||||
|
||||
event="$1"
|
||||
directory="$2"
|
||||
file="$3"
|
||||
|
Reference in New Issue
Block a user