diff options
| author | Jonathan Bauer | 2020-05-25 11:26:54 +0200 |
|---|---|---|
| committer | Jonathan Bauer | 2020-05-25 11:26:54 +0200 |
| commit | 8b36285c9ec75ee9fa59f44b0714b952b574190f (patch) | |
| tree | 3d4e51530e54e3d7643e47f2bd4e550be0de07f0 /modules.d/slx-splash/scripts | |
| parent | build-initramfs.sh: support CentOS-7 again (diff) | |
| parent | Merge branch 'master' into nobash-merge (diff) | |
| download | systemd-init-8b36285c9ec75ee9fa59f44b0714b952b574190f.tar.gz systemd-init-8b36285c9ec75ee9fa59f44b0714b952b574190f.tar.xz systemd-init-8b36285c9ec75ee9fa59f44b0714b952b574190f.zip | |
Merge branch 'nobash-merge' into downloader-nobash-merge
Diffstat (limited to 'modules.d/slx-splash/scripts')
| -rw-r--r-- | modules.d/slx-splash/scripts/slx-splash-exam.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/modules.d/slx-splash/scripts/slx-splash-exam.sh b/modules.d/slx-splash/scripts/slx-splash-exam.sh new file mode 100644 index 00000000..b2bf4f53 --- /dev/null +++ b/modules.d/slx-splash/scripts/slx-splash-exam.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +. /etc/openslx + +if [ -n "$SLX_EXAM" ]; then + if [ -e "/etc/splash.ppm.gz" ]; then + systemd-preserve-process-marker /bin/busybox fbsplash -b -s "/etc/splash.ppm.gz" & + elif [ -e "/etc/splash.ppm" ]; then + systemd-preserve-process-marker /bin/busybox fbsplash -b -s "/etc/splash.ppm" & + else + echo "Splash screen requested, but not found in initramfs..." + fi +fi + +: |
