From 9836ee3d94f573cdeabeccf6f6fbee658efb7c71 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 5 Aug 2014 19:26:26 -0700 Subject: [PATCH] no need for shell script anymore. --- slocked | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 slocked diff --git a/slocked b/slocked deleted file mode 100755 index 0f9fde1..0000000 --- a/slocked +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -ps=$(ps ux \ - | sed 1d \ - | grep -v tty1 \ - | grep -v pts \ - | grep -v '?' \ - | awk '{ print $2 }') - -if test -n "$ps"; then - echo "Killing: $ps" - kill $ps 2> /dev/null - kill -9 $ps 2> /dev/null -fi - -exec 2> /dev/null - -if test -z "$1"; then - exec slock -f ~/.slock_passwd - exit 1 -fi - -exec slock -p "$1" -exit 1