Fix wget location
This commit is contained in:
parent
fc527afdd0
commit
1d2cbf8135
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ restartwifi(){
|
||||||
|
|
||||||
. /etc/vpnsecret
|
. /etc/vpnsecret
|
||||||
|
|
||||||
/usr/bin/wget -O/etc/hosts https://$HOSTNAME/hosts --post-data "secret=$SECRET" --no-check-certificate >/var/log/wget 2>&1
|
/bin/wget -O/etc/hosts https://$HOSTNAME/hosts --post-data "secret=$SECRET" --no-check-certificate >/var/log/wget 2>&1
|
||||||
|
|
||||||
/sbin/uci set wireless.@wifi-iface[0].network="VPN360"
|
/sbin/uci set wireless.@wifi-iface[0].network="VPN360"
|
||||||
/sbin/uci commit
|
/sbin/uci commit
|
||||||
|
@ -40,7 +40,7 @@ if [ $(ipaddr) ]
|
||||||
sleep 10
|
sleep 10
|
||||||
if [ $(ipaddr) ]
|
if [ $(ipaddr) ]
|
||||||
then
|
then
|
||||||
/usr/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET&ip=$(ipaddr)" --no-check-certificate 2>/var/log/wget | /bin/ash
|
/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET&ip=$(ipaddr)" --no-check-certificate 2>/var/log/wget | /bin/ash
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
@ -53,7 +53,7 @@ if [ $(ipaddr) ]
|
||||||
while [ True ]
|
while [ True ]
|
||||||
do
|
do
|
||||||
sleep 10
|
sleep 10
|
||||||
/usr/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET" --no-check-certificate 2>/var/log/wget | /bin/ash
|
/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET" --no-check-certificate 2>/var/log/wget | /bin/ash
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue