distribution/packages/hardware/quirks/devices/Anbernic RG552/030-enable_wifi

14 lines
431 B
Text
Raw Normal View History

#!/bin/sh
2023-07-28 13:16:04 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2023-present BrooksyTech (https://github.com/brooksytech)
. /storage/.config/profile.d/001-device_config
2023-07-28 13:16:04 +00:00
# Set export GPIO for Wifi and enable
if [ ! -d "/sys/class/gpio/gpio${DEVICE_WIFI}" ]; then
echo ${DEVICE_WIFI} > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio${DEVICE_WIFI}/direction
echo 1 > /sys/class/gpio/gpio${DEVICE_WIFI}/value
fi