diff options
Diffstat (limited to 'data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup')
-rwxr-xr-x | data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup b/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup deleted file mode 100755 index f283cc96..00000000 --- a/data/live-build-config/includes.chroot/usr/lib/openssh/ssh-session-cleanup +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh - -ssh_session_pattern='sshd: \S.*@pts/[0-9]+' - -IFS="$IFS@" -pgrep -a -f "$ssh_session_pattern" | while read pid daemon user pty; do - echo "Found ${daemon%:} session $pid on $pty; sending SIGTERM" - kill "$pid" || true -done - -exit 0 |