Skip to content

Commit

Permalink
Update..
Browse files Browse the repository at this point in the history
  • Loading branch information
4IceG authored Mar 5, 2022
1 parent 85b7eff commit b945cee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modemband/files/usr/bin/modemband.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ if [ -z "$_DEVICE" ]; then
echo "No supported modem was found, quitting..."
fi
exit 0
else
_DEVICE1=$(uci -q get modemband.@modemband[0].set_port)
if [ -n "$_DEVICE1" ]; then
_DEVICE=$_DEVICE1
fi
fi
if [ ! -e "$_DEVICE" ]; then
if [ "x$1" = "xjson" ]; then
Expand Down
6 changes: 5 additions & 1 deletion modemband/files/usr/share/modemband/12d11506
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@ setbands() {
else
HEX=$(bandstohex "$BANDS")
fi
[ "$HEX" != "0" ] && sms_tool -d $_DEVICE at "at^syscfgex=\"030201\",3FFFFFFF,2,4,$HEX,,"
if [ "$HEX" != "0" ]; then
O=$(sms_tool -d $_DEVICE at "at^syscfgex?")
MODE=$(echo "$O" | awk -F[:,] '{print $2}' | xargs)
sms_tool -d $_DEVICE at "at^syscfgex=\"${MODE:-030201}\",3FFFFFFF,2,4,$HEX,,"
fi
}

0 comments on commit b945cee

Please sign in to comment.