Commit 2c1933e4 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

wwan_connect: improve modem number fix

parent ea7e941f
set -e
MODEM_NR=$(sudo mmcli -L| cut -d / -f 6|cut -d ' ' -f 1)
echo "Modem Nr: $MODEM_NR"
sudo mmcli -m $MODEM_NR --simple-connect="apn=webaut,allow-roaming=true"
sudo mmcli -m any --simple-connect="apn=webaut,allow-roaming=true"
ADDR=$(sudo mmcli --bearer 0 | grep address | awk '{ print $3 }')
GW=$(mmcli --bearer 0 | grep gateway | awk '{ print $3 }')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment