blob: 9ec3659ec6383795d8b5ff3cbadb9404fca1e3bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/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" <<EOF
[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/"
exit 0
|