mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
fixed status update if nothing was done
This commit is contained in:
parent
69c043fefb
commit
a2ffb64996
@ -172,6 +172,7 @@ case $cmd in
|
||||
if [ "$OLDIP" != "$WANIP" -a "${WANIP}" != ${NOIP} ];then
|
||||
${UPDATE_TOOL} -c $FILE
|
||||
RESULT=$?
|
||||
[ $RESULT -eq 0 ] && $0 success
|
||||
cat /proc/uptime |awk '{print $1}' |cut -d . -f 1 > $LASTUPDATE
|
||||
fi
|
||||
#if we don't know our WAN IP do a blind update once a hour
|
||||
@ -183,12 +184,11 @@ case $cmd in
|
||||
if [ $DIFF -gt $UPDATEMINUTESUNKNOWN ];then
|
||||
${UPDATE_TOOL} -c $FILE
|
||||
RESULT=$?
|
||||
[ $RESULT -eq 0 ] && $0 success
|
||||
cat /proc/uptime |awk '{print $1}' |cut -d . -f 1> $LASTUPDATE
|
||||
fi
|
||||
fi
|
||||
if [ $RESULT -eq 0 ];then
|
||||
$0 success
|
||||
else
|
||||
if [ $RESULT -ne 0 ];then
|
||||
$0 failed
|
||||
fi
|
||||
;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user