From: David-John Willis Date: Tue, 24 Nov 2009 08:37:42 +0000 (+0000) Subject: pandora-skel: Add recipie to populate /etc/skel with files for all new users. X-Git-Tag: Release-2010-05/1~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=216f2f1b7b95464c011fafb2bd9c950731fde3e4;p=openpandora.oe.git pandora-skel: Add recipie to populate /etc/skel with files for all new users. * This really only makes sense when installed as part of an image or you will end up with some users with files and some without ;-). --- diff --git a/recipes/pandora-system/pandora-skel.bb b/recipes/pandora-system/pandora-skel.bb new file mode 100644 index 0000000..8169e8f --- /dev/null +++ b/recipes/pandora-system/pandora-skel.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Default 'new user' files on the OpenPandora." + +COMPATIBLE_MACHINE = "omap3-pandora" + +## /etc/skel is used by Shadow's useradd so you really have that installed for this to make sense ;) +#RDEPENDS = "shadow" + +PR = "r0" + +SRC_URI = " \ + file://.xinitrc \ +" + +do_install() { + install -d ${D}${sysconfdir}/skel/ + install -m 0777 ${WORKDIR}/.xinitrc ${D}${sysconfdir}/skel/ +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +FILES_${PN} += "${prefix} ${datadir}" diff --git a/recipes/pandora-system/pandora-skel/.xinitrc b/recipes/pandora-system/pandora-skel/.xinitrc new file mode 100644 index 0000000..f085bab --- /dev/null +++ b/recipes/pandora-system/pandora-skel/.xinitrc @@ -0,0 +1,21 @@ +#HACK: Run Xsession.d in this place :-o + +SYSSESSIONDIR=/etc/X11/Xsession.d +run-parts $SYSSESSIONDIR + +# The following variable defines the session which is started if the user +# doesn't explicitely select a session in SLiM. + +DEFAULT_SESSION=startxfce4 + +case $1 in +xfce4) + exec startxfce4 + ;; +pmenu) + exec pmenu + ;; +*) + exec $DEFAULT_SESSION + ;; +esac