Created
October 9, 2020 18:38
-
-
Save chexov/3b448f5d7a94170b1f25288124acc829 to your computer and use it in GitHub Desktop.
connect usb modem on ubuntu startup. nmcli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@elmer:/home/pi# cat /etc/rc.local | |
#!/bin/sh | |
echo "nameserver 8.8.8.8" > /etc/resolv.conf | |
e=1 | |
while [ $e -ne 0 ]; do | |
echo "gaga"; | |
nmcli c up Cricket ifname cdc-wdm0 | |
sleep 2; | |
nmcli c show | grep Cricket | grep cdc-wdm0 | |
e=$? | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment