File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
files/initrd/opt/arc/include Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -611,6 +611,7 @@ function systemCheck () {
611611 getnetinfo
612612 getdiskinfo
613613 getmap
614+ [ ! -f " ${D_FILE} " ] && updateOffline || true
614615}
615616
616617# ##############################################################################
Original file line number Diff line number Diff line change @@ -559,7 +559,7 @@ function updateOffline() {
559559 # Check file size and restore backup if necessary
560560 local FILESIZE=$( stat -c%s " ${MODEL_CONFIG_PATH} /data.yml" )
561561 if [ " ${FILESIZE} " -lt 3072 ]; then
562- cp -f " ${MODEL_CONFIG_PATH} /data.yml.bak" " ${MODEL_CONFIG_PATH} /data.yml"
562+ [ -f " ${MODEL_CONFIG_PATH} /data.yml.bak " ] && cp -f " ${MODEL_CONFIG_PATH} /data.yml.bak" " ${MODEL_CONFIG_PATH} /data.yml"
563563 fi
564564 fi
565565 return 0
You can’t perform that action at this time.
0 commit comments