#!/bin/ash grep -qw 'splash' "/proc/cmdline" || exit 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 > "$NEWROOT/etc/systemd/system/getty@.service.d/restore-cursor.conf" < /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/" exit 0