Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how-to make ifplugd "beep" when I plug a cable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Coume
Guru
Guru


Joined: 11 Jun 2004
Posts: 306

PostPosted: Mon Sep 20, 2004 6:01 pm    Post subject: how-to make ifplugd "beep" when I plug a cable Reply with quote

Hello,

when I was using ifplugd under FC1 and FC2, whenever I was plugging a network cable and a network connexion was going up or down, I had a Beep through the PC speaker of the laptop.
It was very convenient to know when the connexion was going up or down, anyone managed to get ifplugd beeping under Gentoo???

Thxs in advance!
Ludo
_________________
MythTVtalk.com - The MythTV Community forum
Back to top
View user's profile Send private message
InfinityX
Guru
Guru


Joined: 31 Jan 2004
Posts: 385

PostPosted: Mon Sep 20, 2004 6:22 pm    Post subject: Reply with quote

You just need to edit /usr/sbin/ifplugd.action, like so:

Code:
case "$2" in
    up)
        state=start
        command
        ;;
    down)
        state=stop
        command
        ;;


You'll need the pcspeaker module loaded for the console beep to work though.

Edit: sorry that's pcspkr module, it's in device drivers > input devices > misc in the 2.6 kernel. Once that's in just put the beep command in.
Back to top
View user's profile Send private message
Coume
Guru
Guru


Joined: 11 Jun 2004
Posts: 306

PostPosted: Mon Sep 20, 2004 7:07 pm    Post subject: Reply with quote

Wooooohhhhhhhhhhoooooooooooooooooooo :)

It works :)
I had to recompile kernel and it is now beeping when I plug or unplug the cable.
In fact it beeps twice when I plug the cable... but I'd rather have it beeping twice that not a single time!

So thanks you very much for this quick answer :D

Ludo
_________________
MythTVtalk.com - The MythTV Community forum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum