some addition scripts

This commit is contained in:
Sheppy
2016-11-05 00:32:24 +01:00
parent f69753cba2
commit 49ce940510
3 changed files with 20 additions and 0 deletions

7
other/sshcheck.sh Normal file
View File

@@ -0,0 +1,7 @@
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
SESSION_TYPE=remote/ssh
else
case $(ps -o comm= -p $PPID) in
sshd|*/sshd) SESSION_TYPE=remote/ssh;;
esac
fi