From fea823f105a8fa27d8f18dc090b67c6bdc935920 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 3 Mar 2015 06:17:42 +0100 Subject: itzks-systems-smartboard: Provide itzks-smartboard system group so that we are able to grant smartboard access to local users without having to put them into the sudo group. --- debian/itzks-systems-smartboard.postinst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'debian/itzks-systems-smartboard.postinst') diff --git a/debian/itzks-systems-smartboard.postinst b/debian/itzks-systems-smartboard.postinst index 1a7686d..e49f1d1 100755 --- a/debian/itzks-systems-smartboard.postinst +++ b/debian/itzks-systems-smartboard.postinst @@ -140,13 +140,21 @@ case "$1" in update-mime-database /usr/share/mime fi + + # setup itzks-smartboard group + if ! getent group itzks-smartboard 1>/dev/null 2>/dev/null; then + echo "Creating itzks-smartboard group." 1>&2 + addgroup --system itzks-smartboard + else + echo "Group itzks-smartboard already exists." 1>&2 + fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) - echo "postinst called with unknown argument \`$1'" >&2 + echo "postinst called with unknown argument \`$1'" 1>&2 exit 1 ;; esac -- cgit v1.2.3