LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-03-2009, 06:17 AM   #1
toshiki
LQ Newbie
 
Registered: Jan 2008
Distribution: Fedora8
Posts: 7

Rep: Reputation: 0
Question 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.
 
Old 01-03-2009, 05:28 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
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.
 
Old 01-04-2009, 01:43 AM   #3
toshiki
LQ Newbie
 
Registered: Jan 2008
Distribution: Fedora8
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up 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.
 
  


Reply

Tags
device, wvdial


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb edge modem configuration in wvdial.conf enth Linux - Networking 2 02-17-2008 08:49 PM
Reliance netconnect USB modem detects but cannot log on to internet JAYARAJAN.C.N Suse/Novell 2 03-01-2007 01:15 PM
Linux detects modem, but will it work? beerwulf Linux - Hardware 1 06-11-2004 11:44 PM
Possible to configure v.92 modem to disconnect when it detects a call? ElijahLofgren Linux - Hardware 0 01-27-2004 06:46 PM


All times are GMT -5. The time now is 01:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration