1
Linux Issues / 2.6.6/connectivity/hotplug/etc
« on: August 26, 2004, 09:09:52 pm »
I'm on Gentoo, and all I really had to do was add an /etc/init.d/net.usb0 script (copy from net.lo and modify accordingly):
start() {
ebegin "Bringing ${IFACE} up"
/sbin/ifconfig ${IFACE} 192.168.129.200 up 2>/dev/null
eend 0
}
stop() {
ebegin "Bringing ${IFACE} down"
/sbin/ifconfig ${IFACE} down &>/dev/null
eend 0
}
and add to /etc/conf.d/net the following:
iface_usb0="192.168.129.200 broadcast 192.168.129.255 netmask 255.255.255.0"
AFAICT, hotplug automatically loads the usbnet module, the module claims the Zaurus and creates the usb0 network interface (you can see it with ifconfig -a even if it's not properly configured), and then /etc/hotplug/net.agent runs the /etc/init.d/net.usb0 script.
start() {
ebegin "Bringing ${IFACE} up"
/sbin/ifconfig ${IFACE} 192.168.129.200 up 2>/dev/null
eend 0
}
stop() {
ebegin "Bringing ${IFACE} down"
/sbin/ifconfig ${IFACE} down &>/dev/null
eend 0
}
and add to /etc/conf.d/net the following:
iface_usb0="192.168.129.200 broadcast 192.168.129.255 netmask 255.255.255.0"
AFAICT, hotplug automatically loads the usbnet module, the module claims the Zaurus and creates the usb0 network interface (you can see it with ifconfig -a even if it's not properly configured), and then /etc/hotplug/net.agent runs the /etc/init.d/net.usb0 script.