0d8e44d8fd
It has value of its own and can be used standalone; autologin does require autostart though. Adjust x11 feature targets accordingly.
19 lines
370 B
Bash
Executable File
19 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -x /usr/bin/X ]; then
|
|
echo "SKIP autostart: X not installed" >&2
|
|
exit 0
|
|
fi
|
|
|
|
## setup automated graphical session startup
|
|
INITTAB=/etc/inittab
|
|
if [ -f "$INITTAB" ]; then
|
|
[ -z "$runlevel" ] && runlevel=5
|
|
sed -i "s,^\(id:\)\(.*\)\(:initdefault.*\),\\1$runlevel\\3," "$INITTAB"
|
|
fi
|
|
|
|
## ...and systemd, if any
|
|
rm -f /etc/systemd/system/default.target
|
|
|
|
:
|