/usr/bin/irkerhook-debian is in irker 2.18+dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
set -e
_MESSAGE="${@}"
_PROGRAM="$(basename ${0})"
for _FILE in "/etc/default/${_PROGRAM}" "/etc/default/${_PROGRAM}.d"/*
do
if [ -e "${_FILE}" ]
then
. "${_FILE}" || true
fi
done
if [ "${IRK_ENABLED}" != "true" ]
then
exit 0
fi
echo "sending IRC notification"
for IRC_CHANNEL in ${IRC_CHANNELS}
do
irk ${IRC_CHANNEL} "${_MESSAGE}"
done
|