Use sockstat, netstat might take to long under certain circumstances.

This commit is contained in:
Ermal 2010-06-01 22:13:32 +00:00
parent eb15decbf7
commit f73be85cfd

View File

@ -62,7 +62,7 @@ echo "10) Filter Logs"
echo "11) Restart webConfigurator"
echo "12) ${product} Developer Shell"
echo "13) Upgrade from console"
SSHD=`netstat -an | grep "*.22" | wc -l`
SSHD=`/usr/bin/sockstat -4l | grep "*.22" | wc -l`
if [ "$SSHD" -gt 0 ]; then
echo "14) Disable Secure Shell (sshd)";
else