pandora-skel: Add recipie to populate /etc/skel with files for all new users.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 24 Nov 2009 08:37:42 +0000 (08:37 +0000)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 24 Nov 2009 08:37:42 +0000 (08:37 +0000)
* 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 [new file with mode: 0644]
recipes/pandora-system/pandora-skel/.xinitrc [new file with mode: 0644]

diff --git a/recipes/pandora-system/pandora-skel.bb b/recipes/pandora-system/pandora-skel.bb
new file mode 100644 (file)
index 0000000..8169e8f
--- /dev/null
@@ -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 (file)
index 0000000..f085bab
--- /dev/null
@@ -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