[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

getting usb networking to hotplug



Lenovo laptop without an ethernet port.
So Im using a USB to ethernet dongle.

If I let the defaults of pppoeconf take over then the machine hangs at
boot for 2-3 minutes waiting for (non-existent) eth0 to come up when dongle
not plugged in.

So now my etc/network/interfaces file is:

auto lo
iface lo inet loopback

allow-hotplug dsl-provider
iface dsl-provider inet ppp
pre-up /bin/ip link set eth0 up # line maintained by pppoeconf
provider dsl-provider

#auto eth0
allow-hotplug eth0
iface eth0 inet manual


Is there some way to tell (to whom? udev??)
"Please do "pon dsl-provider" when you see an eth0"

If it matters 

 /etc/udev/rules.d/70-persistent-net.rules contains

# USB device 0x:0x (ax88179_178a)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<something>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"


Reply to: