Commit 1bac35f4 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

wwan_connect: set -e

parent 33d7ccf6
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"
ADDR=$(sudo mmcli --bearer 0 | grep address | awk '{ print $3 }')
GW=$(mmcli --bearer 0 | grep gateway | awk '{ print $3 }')
echo "Configuring Addr $ADDR and Gw $GW"
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