From 080be6c22f287d24133f5d319e083d7674c4ed0b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 4 Apr 2019 14:05:43 +0200 Subject: Rename script: itzks-user-suicide -> itzks-goodbye-user-session. --- bin/itzks-user-suicide | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100755 bin/itzks-user-suicide (limited to 'bin/itzks-user-suicide') diff --git a/bin/itzks-user-suicide b/bin/itzks-user-suicide deleted file mode 100755 index 82e2633..0000000 --- a/bin/itzks-user-suicide +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -# Copyright (C) 2017 Mike Gabriel -# Copyright (C) 2017 Benjamin Schlüter -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -if [ $EUID -ge 500 ]; then - - # safety net for well-known browsers - pkill -TERM -u "${LOGNAME}" x-www-browser - pkill -TERM -u "${LOGNAME}" firefox-esr - pkill -TERM -u "${LOGNAME}" firefox - pkill -TERM -u "${LOGNAME}" iceweasel - pkill -TERM -u "${LOGNAME}" chromium - pkill -TERM -u "${LOGNAME}" chrome - pkill -TERM -u "${LOGNAME}" konqueror - pkill -TERM -u "${LOGNAME}" midori - pkill -TERM -u "${LOGNAME}" opera - sleep 1 - - # dump all other processes the hard way... - pkill -KILL -u "${LOGNAME}" - -else - - echo "$(basename $0): System accounts are not allowed to commit suicide." - -fi - -exit 0 -- cgit v1.2.3