mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
changed success/failure storage after update is done via update URL
This commit is contained in:
parent
68bd749164
commit
ad1d94f6a6
@ -247,7 +247,12 @@ doUpdate()
|
||||
fi
|
||||
|
||||
$WGET ${wgetoptions} "${updateurl}"
|
||||
[ $? -eq 0 ] && ${0} success
|
||||
#ToDo: check the returning text from WEB Server. User need to give expected string.
|
||||
if [ $? -eq 0 ];then
|
||||
${0} success $wanip
|
||||
else
|
||||
${0} failed
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
@ -290,6 +295,7 @@ case ${cmd} in
|
||||
doReadCFG
|
||||
oldip=$(cat ${IPFILE})
|
||||
doGetWANIP
|
||||
echo ${IPFILE}
|
||||
echo ${wanip} > ${IPFILE}
|
||||
cat ${cfgfile} |grep -v execute > ${cfgfile}.tmp
|
||||
mv ${cfgfile}.tmp ${cfgfile}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user