summaryrefslogtreecommitdiff
path: root/packages/initrdscripts
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-01-13 16:01:10 -0200
committerOtavio Salvador <otavio@ossystems.com.br>2009-01-13 16:04:47 -0200
commit1a098e0168ff4ab7a3354a4820e53251a949208e (patch)
treec74d077d2f25dc7e1513a217e5a45d2240450ef7 /packages/initrdscripts
parentb4d7f5021fa13e10d908aceb4855e1a378563c80 (diff)
initramfs-module-psplash: add
This is used to make the psplash usage easier for initramfs users. It has been created by O.S. Systems.
Diffstat (limited to 'packages/initrdscripts')
-rw-r--r--packages/initrdscripts/files/00-psplash.sh4
-rw-r--r--packages/initrdscripts/files/99-psplash.sh2
-rw-r--r--packages/initrdscripts/initramfs-module-psplash_1.0.bb13
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 0000000000..491fe13fc3
--- /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 0000000000..fa488cff8b
--- /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 0000000000..a765b36ad3
--- /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/* "