bring postmarket os usb network up on device boot
[sxmo-sms-ssh] / pm-net.sh
diff --git a/pm-net.sh b/pm-net.sh
new file mode 100755 (executable)
index 0000000..6088922
--- /dev/null
+++ b/pm-net.sh
@@ -0,0 +1,8 @@
+#!/bin/sh -xe
+
+# postmarketos network setup
+
+dev=$( ip link | grep enx | cut -d: -f2 )
+echo "## Using $dev"
+sudo ifconfig $dev 172.16.42.2 netmask 255.255.255.0 up
+ping -c 3 172.16.42.1 && ssh user@172.16.42.1