summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2020-01-17 16:28:31 +0100
committerJonathan Bauer2020-01-17 16:28:31 +0100
commit14e58d43ddc07f2f35ce3a5e874babe6e0f57543 (patch)
tree43ee259bd1542870dd7ee6f62e3ebc4ab21ed83b
parent[*] fix fallback when no slxsrv is in kcl (diff)
downloadsystemd-init-14e58d43ddc07f2f35ce3a5e874babe6e0f57543.tar.gz
systemd-init-14e58d43ddc07f2f35ce3a5e874babe6e0f57543.tar.xz
systemd-init-14e58d43ddc07f2f35ce3a5e874babe6e0f57543.zip
[slx-splash] exam mode
-rwxr-xr-xbuilder/modules.d/slx-splash/module-setup.sh1
-rw-r--r--builder/modules.d/slx-splash/scripts/slx-splash-exam.sh15
2 files changed, 16 insertions, 0 deletions
diff --git a/builder/modules.d/slx-splash/module-setup.sh b/builder/modules.d/slx-splash/module-setup.sh
index 05542269..29a85648 100755
--- a/builder/modules.d/slx-splash/module-setup.sh
+++ b/builder/modules.d/slx-splash/module-setup.sh
@@ -10,5 +10,6 @@ depends() {
install() {
cp "$moddir/data/splash.ppm.gz" "$initdir/etc/splash.ppm.gz"
inst_hook pre-trigger 10 "$moddir/scripts/slx-splash.sh"
+ inst_hook pre-pivot 00 "$moddir/scripts/slx-splash-exam.sh"
inst_hook pre-pivot 20 "$moddir/scripts/restore-cursor.sh"
}
diff --git a/builder/modules.d/slx-splash/scripts/slx-splash-exam.sh b/builder/modules.d/slx-splash/scripts/slx-splash-exam.sh
new file mode 100644
index 00000000..b2bf4f53
--- /dev/null
+++ b/builder/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
+
+: