summaryrefslogtreecommitdiff
path: root/packages/initrdscripts/files/99-psplash.sh
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-02-23 14:16:30 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2009-02-23 14:32:07 -0300
commit6fb58774bcf7e9bbfd3f3ff25d134269f402539e (patch)
treef6f150ad2b6622d05de04caed13d8567d703891b /packages/initrdscripts/files/99-psplash.sh
parent0ba9afbe37a6ffaaefae3d37c79cb921f60317a2 (diff)
initramfs-module-psplash: allow psplash to be disabled using boot param
Add support to disable psplash using boot param as done for regular psplash package. To disable it, use 'psplash=false' as boot param.
Diffstat (limited to 'packages/initrdscripts/files/99-psplash.sh')
-rw-r--r--packages/initrdscripts/files/99-psplash.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/initrdscripts/files/99-psplash.sh b/packages/initrdscripts/files/99-psplash.sh
index fa488cff8b..3d5f1d60d1 100644
--- a/packages/initrdscripts/files/99-psplash.sh
+++ b/packages/initrdscripts/files/99-psplash.sh
@@ -1,2 +1,4 @@
-mkdir -p /mnt/mnt/.psplash
-mount -n -o move /mnt/.psplash /mnt/mnt/.psplash
+if ! grep -Eq '\s?psplash=false\s?' /proc/cmdline; then
+ mkdir -p /mnt/mnt/.psplash
+ mount -n -o move /mnt/.psplash /mnt/mnt/.psplash
+fi