distribution/packages/jelos/sources/autostart/common/008-network
fewtarius 9000b83d15
* Move samba configuration to user space.
* Remove kernel tweaks that inhibit proper sleep.
* Merge hostname change and wifi into 008-network.
* Adjust flycast build options.
* No longer build main in merge until we can work out the double build bug.
2022-10-03 19:10:53 -04:00

24 lines
576 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}
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