Advice on setting up USB ADSL modem
I hope this it the right place to ask this question; my apologies if not.
I have a USB ADSL modem which is currently running on a desktop system.
The modem uses the Nortek development version of the eciadsl driver.
It took me a while to get it working about 12 months ago on an FC3 system, and I currently use it by calling the startup script as root. There are two phases to connecting. The first is to synchronize the modem and create a tap interface; the second is to create a ppp link using rp-pppoe. In my original script I added /sbin/ifup ppp0 after tap0 was set up.
What I would like to do on my current gentoo system is have the synchronization and tap0 interface setup/pulled-down when the modem is plugged/unplugged, and have an on-demand ppp0 setup using the normal adsl network configuration scripts in gentoo.
The /dev/net/tun device is, I believe, created outside the udev system.
I am running 2.6.12-gentoo-r1, udev-058, hotplug-20040923, coldplug-20040920. /proc/sys/kernel/hotplug is /sbin/udevsend.
Should I be using udev rules to set this up? In either case, can you point me to some documents that will explain the details. (The documentation I have seen is keyed towards /dev setup and naming, naturally.)
Thanks,
Peter
Signature · 14 lines
Peter B. West <http://cv.pbw.id.au/> Folio <http://defoe.sourceforge.net/folio/> <http://folio.bkbits.net/> <- the atTridged version ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 16 lines · Peter B. West
I hope this it the right place to ask this question; my apologies if not.
I have a USB ADSL modem which is currently running on a desktop system.
The modem uses the Nortek development version of the eciadsl driver.
It took me a while to get it working about 12 months ago on an FC3 system, and I currently use it by calling the startup script as root. There are two phases to connecting. The first is to synchronize the modem and create a tap interface; the second is to create a ppp link using rp-pppoe. In my original script I added/sbin/ifupppp0 after tap0 was set up.What I would like to do on my current gentoo system is have the synchronization and tap0 interface setup/pulled-down when the modem is plugged/unplugged, and have an on-demand ppp0 setup using the normal adsl network configuration scripts in gentoo.
Quoted 6 lines
The
/dev/net/tundevice is, I believe, created outside the udev system.I am running 2.6.12-gentoo-r1, udev-058, hotplug-20040923, coldplug-20040920.
/proc/sys/kernel/hotplugis/sbin/udevsend.Should I be using udev rules to set this up?
This will not work with the current released udev version, we are currently preparing something like that, but you better wait until we are ready with the current devel-version...
Quoted 4 lines
In either case, can you
point me to some documents that will explain the details. (The documentation I have seen is keyed towards /dev setup and naming, naturally.)
Place a scrip in /etc/hotplug.d/usb/<name>.hotplug. You will be called for _every_ USB event. Check if the call is for your modem $PRODUCT and check $ACTION for add/remove and do whatever you need in that scipt.
Kay
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 37 lines · Kay Sievers
Quoted 16 lines · Peter B. West
I hope this it the right place to ask this question; my apologies if not.
I have a USB ADSL modem which is currently running on a desktop system. The modem uses the Nortek development version of the eciadsl driver. It took me a while to get it working about 12 months ago on an FC3 system, and I currently use it by calling the startup script as root. There are two phases to connecting. The first is to synchronize the modem and create a tap interface; the second is to create a ppp link using rp-pppoe. In my original script I added
/sbin/ifupppp0 after tap0 was set up.What I would like to do on my current gentoo system is have the synchronization and tap0 interface setup/pulled-down when the modem is plugged/unplugged, and have an on-demand ppp0 setup using the normal adsl network configuration scripts in gentoo.
Quoted 6 lines
The
/dev/net/tundevice is, I believe, created outside the udev system.I am running 2.6.12-gentoo-r1, udev-058, hotplug-20040923, coldplug-20040920.
/proc/sys/kernel/hotplugis/sbin/udevsend.Should I be using udev rules to set this up?
This will not work with the current released udev version, we are currently preparing something like that, but you better wait until we are ready with the current devel-version...
Quoted 4 lines
In either case, can you
point me to some documents that will explain the details. (The documentation I have seen is keyed towards /dev setup and naming, naturally.)
Quoted 3 lines
Place a scrip in /etc/hotplug.d/usb/<name>.hotplug. You will be called for _every_ USB event. Check if the call is for your modem $PRODUCT and check $ACTION for add/remove and do whatever you need in that scipt.
Thanks Kay, that's what I needed to know. I assume that <name> is irrelevant, with all scripts being called on every event?
Peter
Signature · 14 lines
Peter B. West <http://cv.pbw.id.au/> Folio <http://defoe.sourceforge.net/folio/> <http://folio.bkbits.net/> <- the atTridged version ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel