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:
fewtarius 2023-05-12 18:19:30 -04:00 committed by GitHub
commit e62bfee301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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