From e3a3fec4317b9e90a90317786bced0cbf74e679a Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Date: Thu, 3 Jan 2019 18:31:49 +0100 Subject: [PATCH] Fix WiFi issues --- device-config/2/bin/heartbeat | 2 +- device-config/2/etc/config/network | 54 +++++++++++++++++++++++++++++- manager/urls.py | 1 + 3 files changed, 55 insertions(+), 2 deletions(-) diff --git a/device-config/2/bin/heartbeat b/device-config/2/bin/heartbeat index 4c8df41..d21601f 100755 --- a/device-config/2/bin/heartbeat +++ b/device-config/2/bin/heartbeat @@ -62,7 +62,7 @@ counter=0 while [ $counter -lt 60 ] do # Retrieve hosts file from server - if /usr/bin/wget -O/etc/hosts https://admin360.kumi.host/hosts --post-data "secret=$SECRET" --no-check-certificate >/var/log/wget 2>&1 + if /usr/bin/wget -O/etc/hosts https://admin360.kumi.host/hosts --timeout=2 --post-data "secret=$SECRET" --no-check-certificate >/var/log/wget 2>&1 then if pgrep "openvpn" >/dev/null diff --git a/device-config/2/etc/config/network b/device-config/2/etc/config/network index d964d90..7be87c9 100644 --- a/device-config/2/etc/config/network +++ b/device-config/2/etc/config/network @@ -30,5 +30,57 @@ config interface 'DHCP' option netmask '255.255.255.0' option ifname 'lo' -config interface 'wwan' +config interface 'wwan1' option proto 'dhcp' + +config interface 'wwan2' + option proto 'dhcp' + +config interface 'wwan3' + option proto 'dhcp' + +config interface 'wwan4' + option proto 'dhcp' + +config interface 'wwan5' + option proto 'dhcp' + +config interface 'wwan6' + option proto 'dhcp' + +config interface 'wwan7' + option proto 'dhcp' + +config interface 'wwan8' + option proto 'dhcp' + +config interface 'wwan9' + option proto 'dhcp' + +config interface 'wwan10' + option proto 'dhcp' + +config interface 'wwan11' + option proto 'dhcp' + +config interface 'wwan12' + option proto 'dhcp' + +config interface 'wwan13' + option proto 'dhcp' + +config interface 'wwan14' + option proto 'dhcp' + +config interface 'wwan15' + option proto 'dhcp' + +config interface 'wwan16' + option proto 'dhcp' + +config interface 'wwan17' + option proto 'dhcp' + +config interface 'wwan18' + option proto 'dhcp' + diff --git a/manager/urls.py b/manager/urls.py index 7528da8..24c11f4 100644 --- a/manager/urls.py +++ b/manager/urls.py @@ -12,6 +12,7 @@ urlpatterns = [ path('devices//delete/', views.deletedevice, name="deletedevice"), path('devices//reboot/', views.rebootdevice, name="rebootdevice"), path('heartbeat', views.heartbeat, name='heartbeat'), + path('wireless', views.wireless, name='wireless'), path('makedevice/', views.makedevice, name="makedevice"), path('makewifi/', views.makewifi, name='makewifi'), path('wifi//edit/', views.editwifi, name='editwifi'),