summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-06-01 22:13:32 +0000
committerErmal <eri@pfsense.org>2010-06-01 22:13:32 +0000
commitf73be85cfd6ea44d545183cc9b7874d6db33de68 (patch)
treeeb87dce8ea7c6cd20c6a5bad880e68aafbb8988b
parenteb15decbf7216536e7bf5c7680d9a0f1256507c9 (diff)
downloadpfsense-f73be85cfd6ea44d545183cc9b7874d6db33de68.zip
pfsense-f73be85cfd6ea44d545183cc9b7874d6db33de68.tar.gz
Use sockstat, netstat might take to long under certain circumstances.
-rwxr-xr-xetc/rc.initial2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index 7f7ad23..13fcbba 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
OpenPOWER on IntegriCloud