blob: 986086d133d94b1259c97372ae8e541d651563b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /bin/sh
echo HOOK chroot hook_autologin.txt
# mkdir -pv /etc/systemd/system/getty@tty1.service.d
# cp /usr/share/dktoolian/autologin.conf /etc/systemd/system/getty@tty1.service.d
# chmod 644 /etc/systemd/system/getty@tty1.service.d/autologin.conf
# if [ -f /etc/inittab -a -f /usr/share/dktoolian/inittab.sed ]
# then
# sed -i -f /usr/share/dktoolian/inittab.sed /etc/inittab
# fi
# SVCS="console-getty container-getty@ getty@ serial-getty@"
SVCS="getty@"
for s in ${SVCS}
do
sed -i -f /usr/share/dktoolian/getty.sed "/lib/systemd/system/${s}.service"
done
rm -fr /usr/share/dktoolian/getty.sed
|