mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use sockstat, netstat might take to long under certain circumstances.
This commit is contained in:
parent
eb15decbf7
commit
f73be85cfd
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user