mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user