[boinc] 02/02: Add boinc to input group, to make mice readable

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Tue Dec 12 13:02:00 UTC 2017


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to branch master
in repository boinc.

commit 4233427a5c616631bd75e90d765d453ad5539839
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Thu Dec 7 00:20:44 2017 +0100

    Add boinc to input group, to make mice readable
---
 debian/boinc-client.postinst | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/boinc-client.postinst b/debian/boinc-client.postinst
index dc28e15..827e2f1 100644
--- a/debian/boinc-client.postinst
+++ b/debian/boinc-client.postinst
@@ -44,6 +44,11 @@ case "$1" in
 	    usermod -a -G video boinc || echo "Could not assign boinc user to group 'video'."
 	fi
 
+	# Assign boinc user to group input if not already the case (for idle detection)
+	if ! getent group input | grep -q boinc; then
+	    usermod -a -G input boinc || echo "Could not assign boinc user to group 'input'."
+	fi
+
 	# Make sure the /var/lib/boinc-client directory exists and
 	# is owned by the boinc user.
 	mkdir -p $BOINC_DIR

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list