bring postmarket os usb network up on device boot
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 28 Jun 2023 17:35:56 +0000 (19:35 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 2 Jul 2023 11:33:40 +0000 (13:33 +0200)
pm-net.sh [new file with mode: 0755]

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