mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-05 08:02:40 +00:00
tests/ (python3 -m unittest discover -s tests; CI on Ubuntu, macOS and Windows): - the device scripts under dash (Ubuntu), bash and busybox ash (OpenWrt), with stub commands and a fake / : mu300-device, -lan-ip, -led (both devices, the timeout), -ttl, -wifi-band, -buttons, mu300-vpn (URI parsing, JSON, networks kept out of the tunnel, the sing-box config), mu300-update (release files, kernel choice, the byte helpers boot images are edited with, which bundles may go onto which device) - tools/i18n.sh with every translation; install.ps1's T/NormalizeAnswer/Gib under PowerShell 5.1 and 7 - build-boot-image.py's generic ramdisk and the U30 Air's modules; the U30 Air's module order - every script parses under the shells that run it; rules from past bugs (no double quotes in install.ps1's device commands, ASCII PowerShell, init looks for partitions after the modules) To be testable, mu300-update and mu300-vpn define their functions only with MU300_LIB=1, and paths can point at a fake root (MU300_SYSROOT, MU300_BIN, MU300_*_CONF). Found by the tests: mu300-vpn's fallback for the device's own network sourced a missing lan.conf, and dash and busybox ash leave the whole subshell when "." cannot open its file - the address came out empty. Buttons (mu300-keys, a small static C reader of /dev/input; mu300-buttons, Ubuntu and OpenWrt): - power: a short press wakes the LEDs, held 3 s shuts down (logind no longer powers off at a touch) - the U30 Air's Wi-Fi key: short press switches the hotspot 2.4 <-> 5 GHz (mu300-wifi-band), held 3 s turns it off or on - LEDs go dark after LED_TIMEOUT (/etc/mu300/led.conf; 60 s on the U30 Air, 0 = always on, the F50's default); what they should show is kept and shown on the next wake. The Wi-Fi LED shows the band: blue 5, white 2.4 GHz. - mainline kernels: CONFIG_KEYBOARD_GPIO (there was no /dev/input at all) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN