distribution/packages/jelos/sources/autostart/common/008-network
fewtarius e7137b32e4
* Add support for dynamic controller variables and support for hotkey configuration when a new controller is default.
* Deprecate device specific controller variables.
* Set avahi hostname on boot.
* Add dmidecode for x86_64 specific quirks.
2022-10-21 17:23:25 -04:00

25 lines
607 B
Bash
Executable file

#!/bin/bash
# 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-hostname ${HOSTNAME}
if [ "$(get_setting internal.wifi)" == 0 ] && [ "${DEVICE_INTERNAL_WIFI}" = true ]
then
nohup rmmod ${DEVICE_WIFI_MODULE} &
exit 0
else
set_setting internal.wifi 1
fi
if [ "$(get_setting wifi.enabled)" == "0" ] || [ "$1" == "disable" ]
then
nohup wifictl disable &
elif [ "$(get_setting wifi.enabled)" == "1" ] || [ "$1" == "enable" ]
then
nohup wifictl enable &
fi