diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-06-30 18:05:14 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-06-30 18:05:14 +0100 |
commit | 3f75df20b45d26fb8741afa211209d9b258f5e2f (patch) | |
tree | 000e81571b8cd44fef4c6bb88395cf17897d2e25 /meta-moblin/packages | |
parent | e95e0650a05ad32f463a2aeec5c8ba693c532ed1 (diff) | |
download | openembedded-core-3f75df20b45d26fb8741afa211209d9b258f5e2f.tar.gz openembedded-core-3f75df20b45d26fb8741afa211209d9b258f5e2f.tar.bz2 openembedded-core-3f75df20b45d26fb8741afa211209d9b258f5e2f.zip |
matchbox-netbook-session: Add pokyuser to the video group for access to dri
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta-moblin/packages')
-rw-r--r-- | meta-moblin/packages/matchbox-netbook-session/matchbox-session-netbook_0.1.bb | 11 |
1 files changed, 10 insertions, 1 deletions
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 } |