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.
 
I'll test this method and I'll let you know.
However have you checked on your phone too?
There is nothing to check on my phone.

All I do is enable Tethering USB on my phone when I have connected the the USB cable to it.

What happened previously was that dhclient ue0 would automatically run, but now, for some reason I need to do it manually.
 
Back
Top