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.
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.
[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.|