mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 12:10:07 +09:00
Merge pull request #90 from cmitu/master
Update auto-login configuration to prevent $TERM substitution
This commit is contained in:
commit
58bc23c9c8
@ -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