#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)

# Minimal OS variable loading for performance
. /etc/profile.d/001-functions

#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

