Skip to content

Commit

Permalink
Create StartUSBNetwork.sh
Browse files Browse the repository at this point in the history
Will configure device to connect to the internet through the micro USB port once PC is configured for network sharing.
  • Loading branch information
jdownin authored Feb 15, 2018
1 parent 3145626 commit 7168679
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions StartUSBNetwork.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
echo "Setup script for the PocketBeagle"
echo "Setting up the default gateway"
/sbin/route add default gw 192.168.7.1

echo "Updating the nameserver entry"
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
echo "nameserver 192.168.7.1" >> /etc/resolv.conf

echo "Setting the time"
ntpdate -b -s -u us.pool.ntp.org

0 comments on commit 7168679

Please sign in to comment.