14 lines
338 B
Text
14 lines
338 B
Text
|
#!/bin/sh
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
||
|
|
||
|
. /etc/profile
|
||
|
|
||
|
if [ "$(get_setting wifi.enabled)" == "0" ] || [ "$1" == "disable" ]
|
||
|
then
|
||
|
connmanctl disable wifi
|
||
|
elif [ "$(get_setting wifi.enabled)" == "1" ] || [ "$1" == "enable" ]
|
||
|
then
|
||
|
connmanctl enable wifi
|
||
|
fi
|