Merge pull request #90 from cmitu/master

Update auto-login configuration to prevent $TERM substitution
This commit is contained in:
Simon Long 2019-03-27 19:25:47 +00:00 committed by GitHub
commit 58bc23c9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -970,7 +970,7 @@ do_boot_behaviour() {
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=
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I $TERM ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I \$TERM
EOF EOF
;; ;;
B3*) B3*)
@ -992,7 +992,7 @@ EOF
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=
ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I $TERM ExecStart=-/sbin/agetty --autologin $SUDO_USER --noclear %I \$TERM
EOF EOF
sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=$SUDO_USER/" sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=$SUDO_USER/"
disable_raspi_config_at_boot disable_raspi_config_at_boot