mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
Fix autologin.conf $TERM settings
This commit is contained in:
parent
68b8aaa969
commit
6f369ad569
@ -970,7 +970,7 @@ do_boot_behaviour() {
|
||||
cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I $TERM
|
||||
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I \$TERM
|
||||
EOF
|
||||
;;
|
||||
B3*)
|
||||
@ -992,7 +992,7 @@ EOF
|
||||
cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I $TERM
|
||||
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I \$TERM
|
||||
EOF
|
||||
sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=$SUDO_USER/"
|
||||
disable_raspi_config_at_boot
|
||||
|
Loading…
Reference in New Issue
Block a user