hilink: control WFB lifecycle and power from CH6 knob
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user