diff options
| -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" | |||
| 2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
| 3 | SECTION = "x11" | 3 | SECTION = "x11" |
| 4 | RDEPENDS = "formfactor gtk-engines initscripts matchbox-session" | 4 | RDEPENDS = "formfactor gtk-engines initscripts matchbox-session" |
| 5 | PR = "r15" | 5 | PR = "r16" |
| 6 | 6 | ||
| 7 | # This package is architecture specific because the session script is modified | 7 | # This package is architecture specific because the session script is modified |
| 8 | # based on the machine architecture. | 8 | # based on the machine architecture. |
| @@ -164,6 +164,15 @@ if [ ! -d /home/pokyuser ]; then | |||
| 164 | audiousers=$audiousers,pokyuser | 164 | audiousers=$audiousers,pokyuser |
| 165 | fi | 165 | fi |
| 166 | sed -i -e "s/audio:\(.*\):\(.*\):\(.*\)/audio:\1:\2:$audiousers/" /etc/group | 166 | sed -i -e "s/audio:\(.*\):\(.*\):\(.*\)/audio:\1:\2:$audiousers/" /etc/group |
| 167 | |||
| 168 | # Add pokyuser to the video group | ||
| 169 | videousers=`grep ^video < /etc/group | cut -d ':' -f 4` | ||
| 170 | if [ "x$videousers" == "x" ]; then | ||
| 171 | videousers=pokyuser | ||
| 172 | else | ||
| 173 | videousers=$videousers,pokyuser | ||
| 174 | fi | ||
| 175 | sed -i -e "s/video:\(.*\):\(.*\):\(.*\)/video:\1:\2:$videousers/" /etc/group | ||
| 167 | fi | 176 | fi |
| 168 | 177 | ||
| 169 | } | 178 | } |
