diff options
-rwxr-xr-x | src/etc/rc.initial | 7 |
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 |