mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
do not report errors on first run
This commit is contained in:
parent
c0f4b8205e
commit
cb52d7fcf0
@ -90,8 +90,8 @@ doWriteCFG()
|
||||
#reset the last updated IP
|
||||
echo "0.0.0.0" > $IPFILE
|
||||
|
||||
#reset last update
|
||||
rm $STATUSFILE
|
||||
#reset last update (if there is one)
|
||||
rm $STATUSFILE 2> /dev/null
|
||||
|
||||
#find the interface (always the default gateway interface)
|
||||
DEFAULT=`ip route |grep default |awk '{print $5}'`
|
||||
@ -128,7 +128,7 @@ doWriteCFG()
|
||||
|
||||
doGetWANIP()
|
||||
{
|
||||
if [ $IPURL ];then
|
||||
if [ ! -z $IPURL ];then
|
||||
OUTFILE=`mktemp`
|
||||
wget -4 -o /dev/null -O $OUTFILE $IPURL
|
||||
WANIP=`cat $OUTFILE`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user