You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
215 B
Bash

1 year ago
#!/bin/sh
case $1 in
2g|3g|4g)
SLOT=$(uci -q get modemconfig.@modem[-1].device)
if [ $SLOT ]; then
mmcli -J -m ${SLOT} | jsonfilter -e '@["modem"]["generic"]["supported-modes"][*]' | grep $1
fi
;;
esac