Revert "Fix wget location"

This reverts commit 1d2cbf8135.
This commit is contained in:
Kumi 2019-02-07 21:25:56 +00:00
parent d0307e13d7
commit c2c8cbbf8a

View file

@ -22,7 +22,7 @@ restartwifi(){
. /etc/vpnsecret
/bin/wget -O/etc/hosts https://$HOSTNAME/hosts --post-data "secret=$SECRET" --no-check-certificate >/var/log/wget 2>&1
/usr/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 commit
@ -40,7 +40,7 @@ if [ $(ipaddr) ]
sleep 10
if [ $(ipaddr) ]
then
/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET&ip=$(ipaddr)" --no-check-certificate 2>/var/log/wget | /bin/ash
/usr/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET&ip=$(ipaddr)" --no-check-certificate 2>/var/log/wget | /bin/ash
fi
done
else
@ -53,7 +53,7 @@ if [ $(ipaddr) ]
while [ True ]
do
sleep 10
/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET" --no-check-certificate 2>/var/log/wget | /bin/ash
/usr/bin/wget -O- https://$HOSTNAME/heartbeat --post-data "secret=$SECRET" --no-check-certificate 2>/var/log/wget | /bin/ash
done
fi