distribution/projects/Rockchip/packages/system-utils/sources/scripts/internalwifi
fewtarius 3cc8ce60f8
* Split autostart scripts into their native packages (more work to do here).
* Update the readme to fix a controls oops.
2022-03-05 21:04:10 -05:00

22 lines
411 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
if [ -z "${DEVICE_INTERNAL_WIFI}" ] || [ "${DEVICE_INTERNAL_WIFI}" = false ]
then
exit 0
fi
case $1 in
disable)
rmmod ${DEVICE_WIFI_MODULE}
set_setting internal.wifi 0
;;
enable)
modprobe ${DEVICE_WIFI_MODULE}
set_setting internal.wifi 1
;;
esac