[debian-edu-commits] debian-edu/ 01/01: Adjust the 'who' command to exclude the special case of gdm3 greeter running as user '(unknown)' to be assumed as a logged in user (Closes: #775608).
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Mon Jan 19 17:37:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch wheezy-updates
in repository shutdown-at-night.
commit 023d47c6e6083724bb2dc7a5df161e59fcf28999
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Mon Jan 19 18:36:37 2015 +0100
Adjust the 'who' command to exclude the special case of gdm3 greeter running as user '(unknown)' to be assumed as a logged in user (Closes: #775608).
---
debian/changelog | 8 ++++++++
shutdown-at-night | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index ab792c4..9e2d716 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+shutdown-at-night (0.10+deb7u3) UNRELEASED; urgency=medium
+
+ * Adjust the 'who' command to exclude the special case of gdm3 greeter
+ running as user '(unknown)' to be assumed as a logged in user
+ (Closes: #775608).
+
+ -- Wolfgang Schweer <wschweer at arcor.de> Mon, 19 Jan 2015 18:05:52 +0100
+
shutdown-at-night (0.10+deb7u2) wheezy; urgency=low
* Backport from unstable version 0.13 to fix RC bug.
diff --git a/shutdown-at-night b/shutdown-at-night
index 08a4e62..6bd91df 100755
--- a/shutdown-at-night
+++ b/shutdown-at-night
@@ -63,7 +63,7 @@ prepare_wakeonlan() {
# Return true if local user is logged in, false otherwise
is_local_user() {
- if [ "$(who)" ] ; then
+ if [ "$(who | grep -v '\(unknown\)')" ] ; then
return 0
else
return 1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/shutdown-at-night.git
More information about the debian-edu-commits
mailing list