Skip to content

Commit 29f8a20

Browse files
authored
Update applyConfig.php
1 parent 92ef7c7 commit 29f8a20

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cgi-bin/applyConfig.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@
4444
if (file_get_contents($wpaconfPath) != $wpaconf)
4545
{
4646
file_put_contents($wpaconfPath, $wpaconf);
47-
`systemctl restart wpa_supplicant@wlan0`;
47+
`ifdown --force wlan0`;
48+
`ifup wlan0`;
4849
}
4950
else
5051
{
51-
`systemctl start wpa_supplicant@wlan0`;
52+
`ifup wlan0`;
5253
}
5354

5455
if (trim(file_get_contents("/etc/hostname")) != trim($config['CONFIG_DISPLAY_NAME']))
@@ -73,4 +74,4 @@
7374

7475
$restarted_services = true;
7576

76-
}
77+
}

0 commit comments

Comments
 (0)