summaryrefslogtreecommitdiff
path: root/debian/libpam0g.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r--debian/libpam0g.postinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst
index 86d7d2de..953078a0 100644
--- a/debian/libpam0g.postinst
+++ b/debian/libpam0g.postinst
@@ -177,7 +177,9 @@ then
echo "Nothing to restart."
fi
- if who | awk '{print $2}' | grep -q ':[0-9]'; then
+ if [ -n "$(who | awk '$2 ~ /console/ && $NF ~ /:[0-9]/ { print $NF }
+ $2 ~ /:[0-9]/ { print $2 }')" ]
+ then
dms=""
for service in wdm xdm; do
case "$services" in