diff options
Diffstat (limited to 'meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh')
-rwxr-xr-x | meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh b/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh new file mode 100755 index 0000000..09cb3de --- /dev/null +++ b/meta-application-manager/recipes-others/pkgmgr-first-setup-service/files/pkgmgr-first-setup.sh @@ -0,0 +1,36 @@ +#!/bin/sh -e + +useradd aglglobalapp +loginctl enable-linger aglglobalapp +vconftool set -t string db/ail/ail_info "0" -f -s system::vconf_inhouse +vconftool set -t string db/menuscreen/desktop "0" -f -s system::vconf_inhouse +vconftool set -f -t string db/menu_widget/language "en_US" +chsmack -a User /usr/kdb/db/ail +chsmack -a User /usr/kdb/db/ail/ail_info +chsmack -a User /usr/kdb/db/menuscreen +chsmack -a User /usr/kdb/db/menuscreen/desktop +chsmack -a User /usr/kdb/db/menu_widget +chsmack -a User /usr/kdb/db/menu_widget/language +chsmack -a '*' /usr/dbspace +chsmack -a '*' /usr/apps +chsmack -a '*' /usr/share/applications +chsmack -a '*' /usr/share/icons +chsmack -a '*' /usr/share/icons/default +chsmack -a '*' /usr/share/icons/default/small/ +chmod g+w /usr/share/applications +chown aglglobalapp:root /usr/share/applications +chown aglglobalapp:root /usr/apps +chown aglglobalapp:root /usr/dbspace + +pkg_initdb +ail_initdb + +if [ -e /usr/lib/systemd/system/multi-user.target.wantspkgmgr-first-setup.service ] +then + rm /usr/lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service +fi + +if [ -e /lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service ] +then + rm /lib/systemd/system/multi-user.target.wants/pkgmgr-first-setup.service +fi |