2023-08-07 00:30:11 +00:00
|
|
|
#!/bin/sh
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-08-07 00:30:11 +00:00
|
|
|
# Minimal OS variable loading for performance
|
2023-09-04 10:46:11 +00:00
|
|
|
. /etc/profile.d/001-functions
|
2022-02-05 14:23:32 +00:00
|
|
|
|
2023-04-22 20:01:07 +00:00
|
|
|
tocon "Configuring network..."
|
|
|
|
|
2023-02-16 22:40:39 +00:00
|
|
|
if [ "$(get_setting network.enabled)" == "0" ] || [ "$1" == "disable" ]
|
2022-02-05 14:23:32 +00:00
|
|
|
then
|
2022-04-09 00:08:14 +00:00
|
|
|
nohup wifictl disable &
|
2023-02-16 22:40:39 +00:00
|
|
|
elif [ "$(get_setting network.enabled)" == "1" ] || [ "$1" == "enable" ]
|
2022-02-05 14:23:32 +00:00
|
|
|
then
|
2022-04-09 00:08:14 +00:00
|
|
|
nohup wifictl enable &
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
2023-02-09 12:25:32 +00:00
|
|
|
|