- common-crosswalk
- common-license
- generic-security
- - common-cleanup-rpi3
+ - common-cleanup-directory
Repos: []
NoChrootScripts:
- buildname
- common-crosswalk
- common-license
- generic-security
- - common-cleanup-rpi3
+ - common-cleanup-directory
Repos: []
NoChrootScripts:
- buildname
- common-crosswalk
- common-license
- generic-security
- - common-cleanup-rpi3
+ - common-cleanup-directory
+ Repos: []
+ NoChrootScripts:
+ - buildname
+Tizen IoT:
+ Part: common-3parts-ramdisk
+ Groups:
+ - IoT Headless Base
+ PostScripts:
+ - generic-adaptation
+ - generic-base
+ - iot-headless-base
+ - generic-wayland
+ - generic-middleware
+ - generic-applications
+ - generic-bluetooth
+ - generic-multimedia
+ - generic-desktop-applications
+ - generic-crosswalk
+ - common-crosswalk
+ - common-license
+ - generic-security
+ - common-cleanup-directory
Repos: []
NoChrootScripts:
- buildname
#!/bin/sh
-echo "############### common-cleanup-rpi3.post ################"
+echo "############### common-cleanup-directory.post ################"
# remove manuals, docs and headers
rm -rf /usr/include
echo "############### common-crosswalk.post ################"
# start wrt widgets preinstall
+rpm -qa | grep wrt-widget
+if [ $? = 0 ]
+then
prepare_widgets.sh
+fi
# add users to display group
for user in alice bob carol guest developer owner; do
if generic_base_user_exists $user; then
- /usr/sbin/groupmod -A $user display
+ /usr/sbin/usermod -G display $user
fi
done
--- /dev/null
+#!/bin/sh
+
+echo "############### iot-headless-base.post ################"
+
+######### multiuser mode: create additional users and fix their homedirs
+if ! generic_base_user_exists owner; then
+ gum-utils --offline --add-user --username=owner --usertype=admin --usecret=tizen
+fi
+
+if ! generic_base_user_exists guest; then
+ gum-utils --offline --add-user --username=guest --usertype=normal --usecret=tizen
+fi
+
+######### add 'guest' user that runs bt-service daemon to vconf_bt group
+function mygetid() { sed '/^'"$1"':/!d;s/^\([^:]*:\)\{2\}\([^:]*\):.*$/\2/' "$2"; }
+function mygetuid() { mygetid "$1" /etc/passwd; }
+function mygetgid() { mygetid "$1" /etc/group; }
+
+gum-utils --offline --add-member --gid=$(mygetgid vconf_bt) --mem_uid=$(mygetuid guest)
+
+######### Execute pkg_initdb if there is no pkgmgr-tool pacakge
+rpm -qa | grep pkgmgr-tool
+if [ $? != 0 ]
+then
+pkg_initdb --ro
+fi
+