From f73be85cfd6ea44d545183cc9b7874d6db33de68 Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 1 Jun 2010 22:13:32 +0000 Subject: [PATCH] Use sockstat, netstat might take to long under certain circumstances. --- etc/rc.initial | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.initial b/etc/rc.initial index 7f7ad23589..13fcbbae03 100755 --- a/etc/rc.initial +++ b/etc/rc.initial @@ -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