hilink: control WFB lifecycle and power from CH6 knob

This commit is contained in:
2026-09-30 11:29:39 +02:00
parent 5799a283e8
commit e7d1f1524d
3 changed files with 47 additions and 10 deletions
@@ -20,6 +20,12 @@ wfb_yaml() {
load_config() {
wfb_yaml /rom"$wfb_cfg"
wfb_yaml "$wfb_cfg"
if [ -r /run/wfb-power ]; then
runtime_txpower=$(cat /run/wfb-power)
case "$runtime_txpower" in
[5-9]|[1-9][0-9]|100) txpower="$runtime_txpower" ;;
esac
fi
[ ! -e "$wfb_key" ] && wfb_key=/rom"$wfb_key"
}