Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Ifplugd breaks services
Date: Tue, 17 Jun 2014 22:00:44
Message-Id: 201406172300.14322.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Ifplugd breaks services by thegeezer
1 On Tuesday 17 Jun 2014 22:08:11 thegeezer wrote:
2 > On 06/14/2014 11:24 PM, Mick wrote:
3 > > On Tuesday 10 Jun 2014 11:43:31 thegeezer wrote:
4 > >> I used to really like ifplugd. mostly for the audible beep when things
5 > >> are disconnected as it's easier to diagnose from afar.
6 > >
7 > > What audible beep? Am I missing some obscure configuration variable on
8 > > my systems?
9 >
10 > lol yes
11 > http://www.gentoo-wiki.info/Ifplugd
12 > but mysteriously i don't have /etc/conf.d/ifplugd -- my
13 > /etc/ifplugd/ifplugd.actions is below and is the only ifplugd file i can
14 > find
15 >
16 > it could be you are missing pcspeaker kernel module ? pcspkr
17 >
18 >
19 >
20 >
21 >
22 > # /etc/ifplugd/ifplugd.actions
23 > if grep -q initng /proc/1/cmdline
24 > then
25 > EXEC="/sbin/ngc"
26 > INITNG="yes"
27 > else
28 > EXEC="/etc/init.d/net.$1"
29 > INITNG="no"
30 > fi
31 >
32 > case "$2" in
33 > up)
34 > if [ "${INITNG}" = "yes" ]
35 > then
36 > ARGS="-u net/$1"
37 > else
38 > ARGS="--quiet start"
39 > fi
40 > ;;
41 > down)
42 > if [ "${INITNG}" = "yes" ]
43 > then
44 > ARGS="-d net/$1"
45 > else
46 > ARGS="--quiet stop"
47 > fi
48 > ;;
49 > *)
50 > echo "$0: wrong arguments" >&2
51 > echo "Call with <interface> <up|down>" >&2
52 > exit 1
53 > ;;
54 > esac
55 >
56 > export IN_BACKGROUND=true
57 >
58 > if [ -x "${EXEC}" ]
59 > then
60 > ${EXEC} ${ARGS}
61 > exit 0
62 > else
63 > logger -t ifplugd.act
64 > exit 1
65 > fi
66
67
68 My ifpugd.actions looks the same.
69
70 I have PCSPKR built in my kernel:
71
72 $ grep -i pcspkr /usr/src/linux/.config
73 CONFIG_HAVE_PCSPKR_PLATFORM=y
74 CONFIG_PCSPKR_PLATFORM=y
75 CONFIG_INPUT_PCSPKR=y
76
77 I can't recall ever having heard a beep when the cable is disconnected. :-/
78
79 --
80 Regards,
81 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Ifplugd breaks services thegeezer <thegeezer@×××××××××.net>