diff options
author | gnhb <gnoahb@gmail.com> | 2010-06-03 23:01:34 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-06-03 23:01:34 +0700 |
commit | 4749cccb32c4709c032ce5631ea11cbd157c6548 (patch) | |
tree | b5946c7a168e09d494ed29e5237608a07e1a6f8f /etc/rc.initial | |
parent | 1a5f6ddf191db009ae5f798f9e63108216ed3330 (diff) | |
parent | b72eb6c8cc0aa927ee79d4c389429eef1a648433 (diff) | |
download | pfsense-4749cccb32c4709c032ce5631ea11cbd157c6548.zip pfsense-4749cccb32c4709c032ce5631ea11cbd157c6548.tar.gz |
Merge branch 'master' of http://gitweb.pfsense.org/pfsense/mainline into mlppp
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-x | etc/rc.initial | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.initial b/etc/rc.initial index 7485e0d..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 @@ -155,7 +155,7 @@ case ${opmode} in fi ;; "") - killall login ; exit + kill $PPID ; exit ;; esac |