summaryrefslogtreecommitdiff
path: root/innernet.sh
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2020-05-22 11:14:52 -0400
committerAdam T. Carpenter <atc@53hor.net>2020-05-22 11:14:52 -0400
commite611c1cd20e4904b3e9b4e4ceb93cac27798577c (patch)
treeadb4be037636f1057048a132ebadb3bed399e161 /innernet.sh
parentcab073ae08de3da46c6bf7b8c14e53a330b4ed9c (diff)
downloadscripts-e611c1cd20e4904b3e9b4e4ceb93cac27798577c.tar.xz
scripts-e611c1cd20e4904b3e9b4e4ceb93cac27798577c.zip
updated net block and porter, added innernet for post-login networking
setup; added compositor toggle
Diffstat (limited to 'innernet.sh')
-rwxr-xr-xinnernet.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/innernet.sh b/innernet.sh
new file mode 100755
index 0000000..786505b
--- /dev/null
+++ b/innernet.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# Ethernet up
+ifconfig em0 up
+
+# Wireless create, up
+# Note: use your ethernet device's MAC addr
+ifconfig wlan0 create wlandev iwn0 wlanaddr 5c:26:0a:06:c1:d6
+ifconfig wlan0 up
+
+# Link aggregate create, up
+# Creates a failover lagg that prefers em0 but uses wlan0 if em0 is unavailable
+ifconfig lagg0 create laggproto failover laggport em0 laggport wlan0
+ifconfig lagg0 up
+
+# Use WPA supplicant to handle SSID/password wireless connection
+wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
+
+# Grab an IP for lagg device
+dhclient lagg0