fix: /etc/systemd/system/getty@tty1.service.d does not exist on Raspbian Bullseye

This commit is contained in:
frederik
2024-01-31 13:36:06 +01:00
parent cbd4924d81
commit c4a4cba8e2
+3
View File
@@ -99,6 +99,9 @@ set_login() {
if ! [ -d /etc/lightdm ];then
systemctl set-default multi-user.target
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
if ! [ -d /etc/systemd/system/getty@tty1.service.d ];then
mkdir /etc/systemd/system/getty@tty1.service.d
fi
cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
[Service]
ExecStart=