[oe-commits] Otavio Salvador : initramfs-module-psplash: add

GIT User account git at amethyst.openembedded.net
Tue Jan 13 18:10:39 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 1a098e0168ff4ab7a3354a4820e53251a949208e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=1a098e0168ff4ab7a3354a4820e53251a949208e

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Tue Jan 13 16:01:10 2009 -0200

initramfs-module-psplash: add

This is used to make the psplash usage easier for initramfs users. It
has been created by O.S. Systems.

---

 packages/initrdscripts/files/00-psplash.sh         |    4 ++++
 packages/initrdscripts/files/99-psplash.sh         |    2 ++
 .../initrdscripts/initramfs-module-psplash_1.0.bb  |   13 +++++++++++++
 3 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/packages/initrdscripts/files/00-psplash.sh b/packages/initrdscripts/files/00-psplash.sh
new file mode 100644
index 0000000..491fe13
--- /dev/null
+++ b/packages/initrdscripts/files/00-psplash.sh
@@ -0,0 +1,4 @@
+mkdir -p /mnt/.psplash
+mount tmpfs -t tmpfs /mnt/.psplash -o,size=40k
+
+psplash &
diff --git a/packages/initrdscripts/files/99-psplash.sh b/packages/initrdscripts/files/99-psplash.sh
new file mode 100644
index 0000000..fa488cf
--- /dev/null
+++ b/packages/initrdscripts/files/99-psplash.sh
@@ -0,0 +1,2 @@
+mkdir -p /mnt/mnt/.psplash
+mount -n -o move /mnt/.psplash /mnt/mnt/.psplash
diff --git a/packages/initrdscripts/initramfs-module-psplash_1.0.bb b/packages/initrdscripts/initramfs-module-psplash_1.0.bb
new file mode 100644
index 0000000..a765b36
--- /dev/null
+++ b/packages/initrdscripts/initramfs-module-psplash_1.0.bb
@@ -0,0 +1,13 @@
+SRC_URI = "file://00-psplash.sh file://99-psplash.sh"
+PR = "r1"
+RDEPENDS = "initramfs-uniboot psplash"
+DESCRIPTION = "An initramfs module to enable psplash."
+
+do_install() {
+    install -d ${D}/initrd.d
+    install -m 0755 ${WORKDIR}/00-psplash.sh ${D}/initrd.d/
+    install -m 0755 ${WORKDIR}/99-psplash.sh ${D}/initrd.d/
+}
+
+PACKAGE_ARCH = "all"
+FILES_${PN} += " /initrd.d/* "





More information about the Openembedded-commits mailing list