From 3f75df20b45d26fb8741afa211209d9b258f5e2f Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 30 Jun 2009 18:05:14 +0100 Subject: matchbox-netbook-session: Add pokyuser to the video group for access to dri Signed-off-by: Richard Purdie --- .../matchbox-netbook-session/matchbox-session-netbook_0.1.bb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'meta-moblin/packages') diff --git a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb b/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb index e318785ece..518e2d790b 100644 --- a/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb +++ b/meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb @@ -2,7 +2,7 @@ DESCRIPTION = "Custom MB session files for poky" LICENSE = "GPL" SECTION = "x11" RDEPENDS = "formfactor gtk-engines initscripts matchbox-session" -PR = "r15" +PR = "r16" # This package is architecture specific because the session script is modified # based on the machine architecture. @@ -164,6 +164,15 @@ if [ ! -d /home/pokyuser ]; then audiousers=$audiousers,pokyuser fi sed -i -e "s/audio:\(.*\):\(.*\):\(.*\)/audio:\1:\2:$audiousers/" /etc/group + + # Add pokyuser to the video group + videousers=`grep ^video < /etc/group | cut -d ':' -f 4` + if [ "x$videousers" == "x" ]; then + videousers=pokyuser + else + videousers=$videousers,pokyuser + fi + sed -i -e "s/video:\(.*\):\(.*\):\(.*\)/video:\1:\2:$videousers/" /etc/group fi } -- cgit v1.2.3