distribution/packages/sysutils/autostart/sources/common/008-network

18 lines
434 B
Text
Raw Normal View History

2022-03-28 23:53:26 +00:00
#!/bin/bash
2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
HOSTNAME=$(get_setting system.hostname)
hostname ${HOSTNAME}
avahi-set-host-name ${HOSTNAME}
2022-02-05 14:23:32 +00:00
if [ "$(get_setting wifi.enabled)" == "0" ] || [ "$1" == "disable" ]
then
nohup wifictl disable &
2022-02-05 14:23:32 +00:00
elif [ "$(get_setting wifi.enabled)" == "1" ] || [ "$1" == "enable" ]
then
nohup wifictl enable &
2022-02-05 14:23:32 +00:00
fi