#!/bin/sh
#Thanks to Dennis "dweazle" Krul for the bash-magic
#Modified a little for listen patux@patux.net
LISTEN=`ps -e | grep [l]isten | grep -v info`
if [ -n "$LISTEN" ]
then
    listen -c 2> /dev/null
else
    echo 0
fi
exit 0
