Browse Source

fix switch back from touchscreen

v1.3
Christian Rotzoll 6 years ago
parent
commit
84097e3cb6
  1. 6
      home.admin/config.scripts/blitz.touchscreen.sh

6
home.admin/config.scripts/blitz.touchscreen.sh

@ -31,7 +31,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# switch to desktop login
sudo raspi-config nonint do_boot_behaviour B4
# set user pi as autologin for lightdm
# set user pi user for autostart
sudo sed -i "s/^autologin-user=.*/autologin-user=pi/g" /etc/lightdm/lightdm.conf
sudo sed -i s'/--autologin root/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
sudo sed -i s'/--autologin admin/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
@ -77,6 +77,10 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
# switch back to console login
sudo raspi-config nonint do_boot_behaviour B2
# set user pi user for autostart
sudo sed -i s'/--autologin root/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
sudo sed -i s'/--autologin admin/--autologin pi/' /etc/systemd/system/getty@tty1.service.d/autologin.conf
# move back old LXDE autostart config
sudp rm /etc/xdg/lxsession/LXDE-pi/autostart
sudo mv /etc/xdg/lxsession/LXDE-pi/autostart.bak /etc/xdg/lxsession/LXDE-pi/autostart

Loading…
Cancel
Save