Added initramfs hook script for removing plymouth
authorAndrew Sichevoi <k@thekondor.net>
Tue, 5 Jun 2012 05:35:49 +0000 (09:35 +0400)
committerAndrew Sichevoi <k@thekondor.net>
Tue, 5 Jun 2012 05:35:49 +0000 (09:35 +0400)
initramfs/remove-plymouth [new file with mode: 0755]

diff --git a/initramfs/remove-plymouth b/initramfs/remove-plymouth
new file mode 100755 (executable)
index 0000000..b67ce7c
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+###
+### This script is distributed in the terms of GNU GPL v3.0+
+### (c) Andrew Sichevoi, http://thekondor.net
+###
+### Name: remove-plymouth
+### Description: Initramfs HOOK script to remove plymouth from the final image
+### Notes: The script does not modifies scripts' contents even they depend on ``plymouth''
+###
+### Arguments
+###   none
+###
+
+PREREQ="plymouth"
+prereqs()
+{
+  echo "$PREREQ"
+}
+
+case $1 in
+prereqs)
+        prereqs
+        exit 0
+        ;;
+esac
+
+[ -z "${DESTDIR}" ] && exit 1
+
+find ${DESTDIR} -name 'plymouth*' | xargs rm -rf
+
+exit 0