From 216f2f1b7b95464c011fafb2bd9c950731fde3e4 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Tue, 24 Nov 2009 08:37:42 +0000 Subject: [PATCH] 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 ;-). --- recipes/pandora-system/pandora-skel.bb | 21 ++++++++++++++++++++ recipes/pandora-system/pandora-skel/.xinitrc | 21 ++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 recipes/pandora-system/pandora-skel.bb create mode 100644 recipes/pandora-system/pandora-skel/.xinitrc 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 -- 2.39.2