summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-splash/scripts/slx-splash-init.sh
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-09 14:58:50 +0100
committerSimon Rettberg2024-02-09 14:58:50 +0100
commit24d1000bc05d6f1ae03350cb95044e3432334f92 (patch)
treea252f160ddce7301f262f51c8f2c9e073570447a /modules.d/slx-splash/scripts/slx-splash-init.sh
parentAvoid using shopt (diff)
downloadsystemd-init-24d1000bc05d6f1ae03350cb95044e3432334f92.tar.gz
systemd-init-24d1000bc05d6f1ae03350cb95044e3432334f92.tar.xz
systemd-init-24d1000bc05d6f1ae03350cb95044e3432334f92.zip
[slx-splash] Adapt to servicified new stuff
Diffstat (limited to 'modules.d/slx-splash/scripts/slx-splash-init.sh')
-rwxr-xr-xmodules.d/slx-splash/scripts/slx-splash-init.sh42
1 files changed, 0 insertions, 42 deletions
diff --git a/modules.d/slx-splash/scripts/slx-splash-init.sh b/modules.d/slx-splash/scripts/slx-splash-init.sh
deleted file mode 100755
index a4c71f88..00000000
--- a/modules.d/slx-splash/scripts/slx-splash-init.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env bash
-
-type warn &>/dev/null || source /lib/dracut-lib.sh
-
-init_drm() {
- # taken from dracut's plymouth module
- # first trigger graphics subsystem
- udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
- # first trigger graphics and tty subsystem
- udevadm trigger --action=add \
- --subsystem-match=graphics \
- --subsystem-match=drm \
- --subsystem-match=tty \
- --subsystem-match=acpi \
- >/dev/null 2>&1
-
- udevadm settle --timeout=180 2>&1
-}
-
-if grep -wq 'splash' /proc/cmdline; then
- # first init graphics
- init_drm
- # disable non-critical kernel messages
- echo "1 1 0 1" > /proc/sys/kernel/printk
- # disable systemd's status message on console
- # See: https://www.freedesktop.org/software/systemd/man/systemd.html#Signals
- kill -55 1
- # clear console
- busybox clear
- # disable cursor
- echo -e "\033[?25l" > /dev/console
- # finally:
- if splashtool --center /etc/splash.ppm -b; then
- splashtool --reset /opt/openslx/icons
- else
- # fbsplash failed, most likely due to missing /dev/fb0
- # -> reactivate systemd status messages
- kill -54 1
- fi
-fi
-
-true