From 1d2cbf8135619b9eb70d2428927f718d637ce83a Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 7 Feb 2019 20:23:02 +0000 Subject: [PATCH] Fix wget location --- device-config/1/bin/heartbeat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/device-config/1/bin/heartbeat b/device-config/1/bin/heartbeat index 9f0c44f..227be5a 100755 --- a/device-config/1/bin/heartbeat +++ b/device-config/1/bin/heartbeat @@ -22,7 +22,7 @@ restartwifi(){ . /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 commit @@ -40,7 +40,7 @@ if [ $(ipaddr) ] sleep 10 if [ $(ipaddr) ] 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 done else @@ -53,7 +53,7 @@ if [ $(ipaddr) ] while [ True ] do 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 fi