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
1 changed files with 2 additions and 2 deletions

View File

@ -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