Commit 6da6a827 authored by Martin Kepplinger's avatar Martin Kepplinger
Browse files

add wwan_connect.sh

parent 8f6bb5a6
#!/bin/bash
sudo mmcli -m 0 --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 }')
sudo ifconfig wwan0 ${ADDR}/30
sudo route add default gw $GW
sudo resolvectl dns wwan0 8.8.8.8
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