changed success/failure storage after update is done via update URL

This commit is contained in:
Daniel Steglich 2015-03-04 10:17:48 +00:00
parent 68bd749164
commit ad1d94f6a6

View File

@ -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}