Solved Automating 'dhclient ue0' when tethering USB

And where did you put the rule.
The reason you use /usr/local/etc/devd is so you can easily spot your works. Instead of polluting system rules in /etc/devd.
 
And where did you put the rule.
The reason you use /usr/local/etc/devd is so you can easily spot your works. Instead of polluting system rules in /etc/devd.
cat /usr/local/etc/devd/usb_tethering.conf:-

Code:
attach 100 {
    match "device-name" "ue0";
    action "/sbin/dhclient ue0";
};

This worked for some time, but no longer does. Now I need to run dhclient ue0 after I have attached a USB cable to my phone and enabled USB tether.

It just stopped working after a power cut and reboot.
 
Back
Top