From c9e06dce9c885bfe2ac8a21c4ee9dec20f3cc262 Mon Sep 17 00:00:00 2001 From: Self-Perfection Date: Tue, 22 Sep 2015 00:32:15 +0300 Subject: [PATCH] Fixed checking for running gpm on tty login --- gpm/trunk/gpm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpm/trunk/gpm.sh b/gpm/trunk/gpm.sh index af35a5f..eac8bf8 100755 --- a/gpm/trunk/gpm.sh +++ b/gpm/trunk/gpm.sh @@ -1,3 +1,3 @@ case $( /usr/bin/tty ) in - /dev/tty[0-9]*) [ -n "$(pgrep gpm)" ] && /usr/bin/disable-paste ;; + /dev/tty[0-9]*) pidof -s gpm >/dev/null && /usr/bin/disable-paste ;; esac -- 2.1.0