Add default user for Tizen IVI 29/27229/2
authorRonan Le Martret <ronan@fridu.net>
Mon, 8 Sep 2014 08:26:36 +0000 (10:26 +0200)
committerRonan Le Martret <ronan@fridu.net>
Mon, 8 Sep 2014 09:22:54 +0000 (11:22 +0200)
Change-Id: Ia0d2fb39b5facdde3032e92f856c3cbb8d80f410
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
recipes-tizen/weston-ivi-shell/weston-ivi-shell-extraconf.inc

index cc17cc5..47cbd0b 100644 (file)
@@ -1,7 +1,11 @@
 inherit useradd
 
-USERADD_PARAM_${PN} += " -d /home/app   -m -u 5000   -g users   -G users,display -r -s /bin/sh app "
-USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999   -g users   -G users,display -r -s /bin/sh guest; "
+GROUPADD_PARAM_${PN} = "-g 100 users; -g 5000 app; -g 192 weston-launch"
+
+USERADD_PARAM_${PN} += " -u 5000 -d /home/app   -m -g users -G users,weston-launch -r -s /bin/sh app ; "
+USERADD_PARAM_${PN} += " -u 9999 -d /home/guest -m -g users -G users,weston-launch -r -s /bin/sh guest "
+
+USERADD_PACKAGES = "${PN}"
 
 do_configure_prepend() {
     # pkg-config check for wayland scanner even though it is present and wayland-scanner.pc seems ok.
@@ -37,10 +41,6 @@ FILES_${PN} += "/usr/lib/weston/gl-renderer.so"
 
 FILES_${PN}-dev += "/usr/lib/pkgconfig/weston.pc"
 
-
-
-
-
 do_install_append() {
  rm -fr ${D}/usr/include/weston/config-parser.h
  rm -fr ${D}/usr/include/weston/compositor.h