diff options
author | Jonathan Bauer | 2020-08-07 14:28:48 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-08-07 14:28:48 +0200 |
commit | 115ce65bef141a324da4cbcbc63b9e47f291fe24 (patch) | |
tree | 2afac1ab13622cbdb2405e111666b1df6cf23557 /modules.d/slx-splash/scripts/slx-splash-exam.sh | |
parent | [busybox] update to 1.32.0 (diff) | |
download | systemd-init-115ce65bef141a324da4cbcbc63b9e47f291fe24.tar.gz systemd-init-115ce65bef141a324da4cbcbc63b9e47f291fe24.tar.xz systemd-init-115ce65bef141a324da4cbcbc63b9e47f291fe24.zip |
[busybox/slx-splash] update busybox/splash
Diffstat (limited to 'modules.d/slx-splash/scripts/slx-splash-exam.sh')
-rw-r--r-- | modules.d/slx-splash/scripts/slx-splash-exam.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/modules.d/slx-splash/scripts/slx-splash-exam.sh b/modules.d/slx-splash/scripts/slx-splash-exam.sh index 7a833a06..e9de2a61 100644 --- a/modules.d/slx-splash/scripts/slx-splash-exam.sh +++ b/modules.d/slx-splash/scripts/slx-splash-exam.sh @@ -1,14 +1,20 @@ #!/usr/bin/env bash +type warn &>/dev/null || . /lib/dracut-lib.sh + . /etc/openslx if [ -n "$SLX_EXAM" ]; then - if [ -e "/etc/splash.ppm.gz" ]; then - /bin/busybox fbsplash -b -s "/etc/splash.ppm.gz" & - elif [ -e "/etc/splash.ppm" ]; then - /bin/busybox fbsplash -b -s "/etc/splash.ppm" & - else - echo "Splash screen requested, but not found in initramfs..." + fbsplash_ppm="/etc/splash.ppm.gz" + if ! [ -e "$fbsplash_ppm" ]; then + fbsplash_ppm="/etc/splash.ppm" + if ! [ -e "$fbsplash_ppm" ]; then + fbsplash_ppm= + warn "Splash screen requested, but not found in initramfs..." + fi + fi + if [ -n "$fbsplash_ppm" ]; then + /bin/busybox fbsplash -b -s "$fbsplash_ppm" & fi fi |