1 # undef default shell subroutine get_fai_dir
2 # instead the new script get_fai_dir will be used
4 setterm -cursor off >/dev/tty3
5 /usr/sbin/faimond >/dev/tty3 &
6 chvt 3
7 unset get_fai_dir
8 unset sndmon
10 sndmon() {
11 # send message to monitor daemon
12 [ "$faimond" -eq 0 ] && return 0
13 if [ "$debug" ];then
14 echo "$sndhostname $*" | nc localhost 4711
15 else
16 echo "$sndhostname $*" | nc localhost 4711 2>/dev/null
17 fi
18 return $?
19 }