Automating 'dhclient ue0' when tethering USB

what about a devd.conf

Code:
/usr/local/etc/devd.conf

this is what i use for my keyboard

i guess you could do the same thing to run dhclient ue0


Code:
#=========================================================================#
# devd.conf
#=========================================================================#

#=========================================================================#
# ducky one 2 mini
#=========================================================================#

attach 100 {
        device-name "uhid[0-9]+";                                                           
        match "vendor"  "0x0416"; # (1)
        match "product" "0x0123"; # (2)

    #
    # Do not add -d flag ! if you do it devd will never detach to background
    # because usbhidaction will run in foreground !
    #
    # Remember you can add arguments after /etc/usbhidaction.conf like
    # action "/usr/bin/usbhidaction -f $device-name -c /etc/usbhidaction.conf /dev/mixer1 2"
    #
        action "/usr/bin/usbhidaction -f $device-name -c /usr/local/etc/usbhidaction.conf";
};
 
Back
Top