distribution/packages/jelos/sources/autostart/common/009-wifi
2022-02-10 06:37:23 -05:00

13 lines
338 B
Bash
Executable file

#!/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