Merge pull request #1422 from fewtarius/dev
Network restart workaround to set hostname correctly until it can be moved out of the read only root.
This commit is contained in:
commit
e62bfee301
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ HOSTNAME=$(get_setting system.hostname)
|
|||
hostname ${HOSTNAME}
|
||||
avahi-set-host-name ${HOSTNAME}
|
||||
|
||||
for service in connman wpa_supplicant
|
||||
do
|
||||
systemctl restart ${service}
|
||||
done
|
||||
|
||||
if [ "$(get_setting network.enabled)" == "0" ] || [ "$1" == "disable" ]
|
||||
then
|
||||
nohup wifictl disable &
|
||||
|
|
Loading…
Reference in a new issue