diff options
author | Ermal <eri@pfsense.org> | 2010-06-01 22:13:32 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-06-01 22:13:32 +0000 |
commit | f73be85cfd6ea44d545183cc9b7874d6db33de68 (patch) | |
tree | eb87dce8ea7c6cd20c6a5bad880e68aafbb8988b /etc/rc.initial | |
parent | eb15decbf7216536e7bf5c7680d9a0f1256507c9 (diff) | |
download | pfsense-f73be85cfd6ea44d545183cc9b7874d6db33de68.zip pfsense-f73be85cfd6ea44d545183cc9b7874d6db33de68.tar.gz |
Use sockstat, netstat might take to long under certain circumstances.
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-x | etc/rc.initial | 2 |
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 |