LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Possible to run wvdial as soon as linux detects USB modem ? (http://www.linuxquestions.org/questions/linux-networking-3/possible-to-run-wvdial-as-soon-as-linux-detects-usb-modem-694658/)

toshiki 01-03-2009 06:17 AM

Possible to run wvdial as soon as linux detects USB modem ?
 
I post here wanting to know if it's Possible to run wvdial as soon as linux detects USB modem.

I have already installed and done the setting for using wvdial. I can successfully use wvdial command to setup internet connection.
But I have only 1 USB modem. When my wife wants to use it for her PC, she disconnects it from my linux machine.

What I want to do now is...
1 that when I attatch the USB back to my linux, I'd want it to do "wvdial &" automatically.
2 that when linux is rebooted, "wvdial &" done automatically as soon as it detects USB modem.

Has anyone done similar thing ? Please enlighten me on this.

David the H. 01-03-2009 05:28 PM

I think your best bet is ivman. It can run commands or scripts on new hardware detection or other system events (via hal). It would be perfect for this kind of thing. I use it myself to reenable my mouse settings, because I constantly flip it back and forth between two computers via a usb a/b switch, and they keep getting lost without it.

It's also possible to launch scripts directly via udev when hardware is plugged in, but that's generally a root-level thing more for hardware configuration.

toshiki 01-04-2009 01:43 AM

thank you
 
[QUOTE=David the H.;3396127]I think your best bet is ivman. QUOTE]

Thank you !
I haven't heard of that deamon but I'll look into it and see if it works for mine.


All times are GMT -5. The time now is 08:31 AM.