blob: b88a6a90a50d9aea65be2b480b8defb98e8f93b4 (
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/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/"
:
|