distribution/packages/jelos/autostart/008-network

18 lines
441 B
Text
Raw Normal View History

#!/bin/sh
2022-02-05 14:23:32 +00:00
# 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
2022-02-05 14:23:32 +00:00
tocon "Configuring network..."
if [ "$(get_setting network.enabled)" == "0" ] || [ "$1" == "disable" ]
2022-02-05 14:23:32 +00:00
then
nohup wifictl disable &
elif [ "$(get_setting network.enabled)" == "1" ] || [ "$1" == "enable" ]
2022-02-05 14:23:32 +00:00
then
nohup wifictl enable &
2022-02-05 14:23:32 +00:00
fi