Fix WiFi issues

This commit is contained in:
Kumi 2019-01-03 18:31:49 +01:00
parent aa75cfc0f7
commit e3a3fec431
3 changed files with 55 additions and 2 deletions

View file

@ -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

View file

@ -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'

View file

@ -12,6 +12,7 @@ urlpatterns = [
path('devices/<int:device_id>/delete/', views.deletedevice, name="deletedevice"),
path('devices/<int:device_id>/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/<int:wifi_id>/edit/', views.editwifi, name='editwifi'),