17 lines
441 B
Bash
Executable file
17 lines
441 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
# Minimal OS variable loading for performance
|
|
. /etc/profile.d/02-distribution
|
|
|
|
tocon "Configuring network..."
|
|
|
|
if [ "$(get_setting network.enabled)" == "0" ] || [ "$1" == "disable" ]
|
|
then
|
|
nohup wifictl disable &
|
|
elif [ "$(get_setting network.enabled)" == "1" ] || [ "$1" == "enable" ]
|
|
then
|
|
nohup wifictl enable &
|
|
fi
|
|
|