distribution/packages/jelos/sources/autostart/common/009-wifi

14 lines
338 B
Text
Raw Normal View History

2022-02-05 14:23:32 +00:00
#!/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