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.

Revisions

  1. chexov created this gist Oct 9, 2020.
    16 changes: 16 additions & 0 deletions nmcli-modem-connect.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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