* Advice on setting up USB ADSL modem
@ 2005-06-26 1:48 Peter B. West
2005-06-26 18:14 ` Kay Sievers
2005-06-27 0:07 ` Peter B. West
0 siblings, 2 replies; 3+ messages in thread
From: Peter B. West @ 2005-06-26 1:48 UTC (permalink / raw)
To: linux-hotplug
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
--
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_id\x16492&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Advice on setting up USB ADSL modem
2005-06-26 1:48 Advice on setting up USB ADSL modem Peter B. West
@ 2005-06-26 18:14 ` Kay Sievers
2005-06-27 0:07 ` Peter B. West
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2005-06-26 18:14 UTC (permalink / raw)
To: linux-hotplug
On Sun, Jun 26, 2005 at 11:48:35AM +1000, Peter B. West wrote:
> 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?
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...
> 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_id\x16492&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Advice on setting up USB ADSL modem
2005-06-26 1:48 Advice on setting up USB ADSL modem Peter B. West
2005-06-26 18:14 ` Kay Sievers
@ 2005-06-27 0:07 ` Peter B. West
1 sibling, 0 replies; 3+ messages in thread
From: Peter B. West @ 2005-06-27 0:07 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Sun, Jun 26, 2005 at 11:48:35AM +1000, Peter B. West wrote:
>
>>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?
>
>
> 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...
>
>
>>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.
Thanks Kay, that's what I needed to know. I assume that <name> is
irrelevant, with all scripts being called on every event?
Peter
--
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_id\x16492&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-27 0:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-26 1:48 Advice on setting up USB ADSL modem Peter B. West
2005-06-26 18:14 ` Kay Sievers
2005-06-27 0:07 ` Peter B. West
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).