summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial4
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
OpenPOWER on IntegriCloud