diff options
author | Steve Langasek <vorlon@debian.org> | 2019-02-14 07:08:30 +0000 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2019-02-14 07:08:30 +0000 |
commit | 8e5ad4dbb561a69edae31f7c97eb4a02bfdc1600 (patch) | |
tree | 5b2390c43f5b204b3502d38aaad7ddef977591ed /debian/libpam0g.postinst | |
parent | 1610dc7080430fd34ecc0b1a5955a48fb7ff0925 (diff) | |
download | pam-8e5ad4dbb561a69edae31f7c97eb4a02bfdc1600.tar.gz pam-8e5ad4dbb561a69edae31f7c97eb4a02bfdc1600.tar.bz2 pam-8e5ad4dbb561a69edae31f7c97eb4a02bfdc1600.zip |
Correctly display the notification when a manual DM restart is needed.
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r-- | debian/libpam0g.postinst | 4 |
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 |