Skip to content

Commit

Permalink
Update applyConfig.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Manawyrm authored Feb 14, 2021
1 parent 92ef7c7 commit 29f8a20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cgi-bin/applyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@
if (file_get_contents($wpaconfPath) != $wpaconf)
{
file_put_contents($wpaconfPath, $wpaconf);
`systemctl restart wpa_supplicant@wlan0`;
`ifdown --force wlan0`;
`ifup wlan0`;
}
else
{
`systemctl start wpa_supplicant@wlan0`;
`ifup wlan0`;
}

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

$restarted_services = true;

}
}

0 comments on commit 29f8a20

Please sign in to comment.