From 7168679124d8fee130f94b281a5fa93c30733d66 Mon Sep 17 00:00:00 2001 From: Joseph Downing <30832781+jdownin@users.noreply.github.com> Date: Thu, 15 Feb 2018 13:14:00 -0600 Subject: [PATCH] Create StartUSBNetwork.sh Will configure device to connect to the internet through the micro USB port once PC is configured for network sharing. --- StartUSBNetwork.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 StartUSBNetwork.sh diff --git a/StartUSBNetwork.sh b/StartUSBNetwork.sh new file mode 100644 index 0000000..ee0976a --- /dev/null +++ b/StartUSBNetwork.sh @@ -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