summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/etc/rc.initial7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/etc/rc.initial b/src/etc/rc.initial
index ae78375..572188f 100755
--- a/src/etc/rc.initial
+++ b/src/etc/rc.initial
@@ -171,7 +171,12 @@ case ${opmode} in
fi
;;
"")
- kill $PPID ; exit
+ ps -o command='' -c -p $PPID | grep -E '^sshd$' > /dev/null
+ if [ $? -eq 0 ]; then
+ exit
+ else
+ kill $PPID ; exit
+ fi
;;
esac
OpenPOWER on IntegriCloud