Files
openipc-builder/devices/ssc337de_lite_zte-k543/general/overlay/etc/wireless/usb
T
TagBugandGitHub b63df059c3 Add ssc337de_lite_zte-k543 device profile (ZTE K543, SC401AI, MT7601U Wi-Fi) (#152)
The first ssc337de_lite device in the tree to ship an excludes list: it prunes 17 of the 18 sensors OpenIPC/sensors builds for infinity6b0 and keeps sc401ai, the board's own.

Wi-Fi is an MT7601U on the vendor STA driver, so the device carries its own /etc/wireless/usb with the gpio 14 power cycle ahead of the modprobe, and execs modprobe so the profile's exit status is the module's rather than an unconditional success. The overlay is registered in .github/firmware-drift.json against the current firmware blob rather than left to drift silently.

Built green on CI before a rebase over #151 and #153, which collided only on the README device table.
2026-09-11 20:28:56 +03:00

16 lines
220 B
Bash
Executable File

#!/bin/sh
set_gpio() {
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
sleep 1
}
# SSC337DE ZTE K543
if [ "$1" = "mt7601sta-ssc337de-zte-k543" ]; then
set_gpio 14 1
set_gpio 14 0
exec modprobe mt7601sta
fi
exit 1