aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-08-05 08:59:44 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-08-05 08:59:44 -0400
commitd4be5bbc3682bb9d7f74db5592988ec0838b6138 (patch)
tree8bc57fd8281765bf403d1d7d7fc68c6b2dda3f04
parent8e386dac954408cc64d1d0715d73dec7905f5771 (diff)
downloadinfrastructure-d4be5bbc3682bb9d7f74db5592988ec0838b6138.tar.gz
autoconnect android usb tethering on laptops
-rw-r--r--files/etc/devd/usb-tether.conf.roadwarrior_latpop6
-rw-r--r--scripts/hostclass/roadwarrior_laptop/30-roadwarrior4
2 files changed, 10 insertions, 0 deletions
diff --git a/files/etc/devd/usb-tether.conf.roadwarrior_latpop b/files/etc/devd/usb-tether.conf.roadwarrior_latpop
new file mode 100644
index 0000000..5183ed2
--- /dev/null
+++ b/files/etc/devd/usb-tether.conf.roadwarrior_latpop
@@ -0,0 +1,6 @@
+notify 100 {
+ match "system" "IFNET";
+ match "subsystem" "ue0";
+ match "type" "ATTACH";
+ action "/sbin/ifconfig ue0 up";
+};
diff --git a/scripts/hostclass/roadwarrior_laptop/30-roadwarrior b/scripts/hostclass/roadwarrior_laptop/30-roadwarrior
index 2cc0a3e..f75685a 100644
--- a/scripts/hostclass/roadwarrior_laptop/30-roadwarrior
+++ b/scripts/hostclass/roadwarrior_laptop/30-roadwarrior
@@ -4,3 +4,7 @@
install_file -m 0600 \
/usr/local/etc/sudoers \
/usr/local/etc/sudoers.d/networkmgr
+
+# Configure devd for Android USB tethering.
+install_file -m 0644 /etc/devd/usb-tether.conf
+service devd restart