Skip to content

Instantly share code, notes, and snippets.

@chexov
Created October 9, 2020 18:38
Show Gist options
  • Save chexov/3b448f5d7a94170b1f25288124acc829 to your computer and use it in GitHub Desktop.
Save chexov/3b448f5d7a94170b1f25288124acc829 to your computer and use it in GitHub Desktop.
connect usb modem on ubuntu startup. nmcli
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