summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-splash/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2024-02-09 16:34:05 +0100
committerSimon Rettberg2024-02-09 16:34:05 +0100
commitf4429e978c8a828b6beaf1f01cf395d22e1ea799 (patch)
tree8f9591831a528e784d86390aeb74fb55125dfb27 /modules.d/slx-splash/scripts
parentExtend service file template for scripts (diff)
downloadsystemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.gz
systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.tar.xz
systemd-init-f4429e978c8a828b6beaf1f01cf395d22e1ea799.zip
Use slx_service helper to create service files
Diffstat (limited to 'modules.d/slx-splash/scripts')
-rwxr-xr-xmodules.d/slx-splash/scripts/slx-splash-stage4.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/modules.d/slx-splash/scripts/slx-splash-stage4.sh b/modules.d/slx-splash/scripts/slx-splash-stage4.sh
deleted file mode 100755
index b88a6a90..00000000
--- a/modules.d/slx-splash/scripts/slx-splash-stage4.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-grep -qw 'splash' "/proc/cmdline" || return 0
-
-# Set option that we want splash
-
-echo "SLX_SPLASH='yes'" >> "$NEWROOT/opt/openslx/config"
-
-# The console cursor is disabled when starting the splash screen.
-# This will add a drop-in to getty@.service to ensure the cursor
-# is restored when starting gettys.
-
-mkdir -p "$NEWROOT/etc/systemd/system/getty@.service.d/"
-cat <<- EOF > "$NEWROOT/etc/systemd/system/getty@.service.d/restore-cursor.conf"
- [Service]
- ExecStartPre=-/usr/bin/env bash -c "echo -en '\033c' > /dev/%I"
-EOF
-
-# Copy icons and tools, so we can trigger the HDD icon in
-# setup-partitions.service
-
-cp -n "$( which splashtool )" "$NEWROOT/opt/openslx/bin/splashtool"
-cp -n -r "/opt/openslx/icons" -t "$NEWROOT/opt/openslx/"
-
-: