I found the issue and a solution (at least for my case).
Problem lies in /lib/functions/breathing_light.sh
breathing_light_status() {
mwan3 status | tee | grep -q online
[ $? -eq 0 ] || return 1
[ -n "`pidof lora_pkt_fwd`" ] || return 1
if [ "`uci get lorawan.network.mode`" == "network_server" ]; then
[ -n "`pidof lorasrv`" ] || return 1
fi
return 0
}
The code expect lora_pkt_fwd to run, But in my case (CUPS on TTN) it does not, but station
for basic station is running.
So I modified it as such:
breathing_light_status() {
mwan3 status | tee | grep -q online
[ $? -eq 0 ] || return 1
if [ "`uci get lorawan.network.mode`" == "basic_station" ]; then
[ -n "`pidof station`" ] || return 1
elif [ "`uci get lorawan.network.mode`" == "network_server" ]; then
[ -n "`pidof lorasrv`" ] || return 1
else
[ -n "`pidof lora_pkt_fwd`" ] || return 1
fi
return 0
}
Now the light is properly green when it should.
Don’t know how to push this change to RAK though…