fix: /etc/systemd/system/getty@tty1.service.d does not exist on Raspbian Bullseye
This commit is contained in:
@@ -99,6 +99,9 @@ set_login() {
|
|||||||
if ! [ -d /etc/lightdm ];then
|
if ! [ -d /etc/lightdm ];then
|
||||||
systemctl set-default multi-user.target
|
systemctl set-default multi-user.target
|
||||||
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
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
|
cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
|
|||||||
Reference in New Issue
Block a user