On Tuesday 17 Jun 2014 22:08:11 thegeezer wrote: > On 06/14/2014 11:24 PM, Mick wrote: > > On Tuesday 10 Jun 2014 11:43:31 thegeezer wrote: > >> I used to really like ifplugd. mostly for the audible beep when things > >> are disconnected as it's easier to diagnose from afar. > > > > What audible beep? Am I missing some obscure configuration variable on > > my systems? > > lol yes > http://www.gentoo-wiki.info/Ifplugd > but mysteriously i don't have /etc/conf.d/ifplugd -- my > /etc/ifplugd/ifplugd.actions is below and is the only ifplugd file i can > find > > it could be you are missing pcspeaker kernel module ? pcspkr > > > > > > # /etc/ifplugd/ifplugd.actions > if grep -q initng /proc/1/cmdline > then > EXEC="/sbin/ngc" > INITNG="yes" > else > EXEC="/etc/init.d/net.$1" > INITNG="no" > fi > > case "$2" in > up) > if [ "${INITNG}" = "yes" ] > then > ARGS="-u net/$1" > else > ARGS="--quiet start" > fi > ;; > down) > if [ "${INITNG}" = "yes" ] > then > ARGS="-d net/$1" > else > ARGS="--quiet stop" > fi > ;; > *) > echo "$0: wrong arguments" >&2 > echo "Call with <interface> <up|down>" >&2 > exit 1 > ;; > esac > > export IN_BACKGROUND=true > > if [ -x "${EXEC}" ] > then > ${EXEC} ${ARGS} > exit 0 > else > logger -t ifplugd.act > exit 1 > fi
My ifpugd.actions looks the same. I have PCSPKR built in my kernel: $ grep -i pcspkr /usr/src/linux/.config CONFIG_HAVE_PCSPKR_PLATFORM=y CONFIG_PCSPKR_PLATFORM=y CONFIG_INPUT_PCSPKR=y I can't recall ever having heard a beep when the cable is disconnected. :-/ -- Regards, Mick
signature.asc
Description: This is a digitally signed message part.

