e7137b32e4
* Deprecate device specific controller variables. * Set avahi hostname on boot. * Add dmidecode for x86_64 specific quirks.
25 lines
607 B
Bash
Executable file
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
|