distribution/projects/Rockchip/packages/system-utils/sources/scripts/internalwifi

23 lines
411 B
Text
Raw Normal View History

#!/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}
2022-03-05 17:54:32 +00:00
set_setting internal.wifi 0
;;
enable)
modprobe ${DEVICE_WIFI_MODULE}
2022-03-05 17:54:32 +00:00
set_setting internal.wifi 1
;;
esac