im trying to use this script
for i in {1..10}; do
mmcli -m $i
done
the output i get on OpenWRT is
error: couldn't find modem
so the loop ran once only and not sure what numbers it ran because it should have found a modem between 1-10
when using the same code and running on Ubuntu i get this output:
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
error: couldn't find modem
which is what i expect. my questions is why the same code works on ubuntu but not OpenWRT
OpenWRT Version: OpenWrt 22.03.2 r19803
Running on x86