From 8e386dac954408cc64d1d0715d73dec7905f5771 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Sat, 3 Aug 2024 08:24:04 -0400 Subject: add usb tethering to laptop hostclass --- scripts/hostclass/laptop | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/hostclass/laptop b/scripts/hostclass/laptop index 66d4181..26f9fe6 100644 --- a/scripts/hostclass/laptop +++ b/scripts/hostclass/laptop @@ -9,6 +9,11 @@ install_file -m 0555 /usr/local/libexec/lid-close install_file -m 0644 /etc/devd/lid-close.conf service devd restart +# Enable kernel module for Android USB tethering. +load_kernel_module if_urndis +set_loader_conf if_urndis_load=YES +sysrc -v ifconfig_ue0='DHCP' + case ${wireless_type:-} in iwm*) set_loader_conf \ -- cgit v1.2.3