From f4429e978c8a828b6beaf1f01cf395d22e1ea799 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Feb 2024 16:34:05 +0100 Subject: Use slx_service helper to create service files --- modules.d/slx-splash/scripts/slx-splash-stage4.sh | 25 ----------------------- 1 file changed, 25 deletions(-) delete mode 100755 modules.d/slx-splash/scripts/slx-splash-stage4.sh (limited to 'modules.d/slx-splash/scripts') 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/" - -: -- cgit v1.2.3-55-g7522