forgot one sudo

This commit is contained in:
fdahms 2019-01-13 20:07:20 +01:00
parent 91e8ce62d4
commit 6d9675a299

View File

@ -163,7 +163,7 @@ fi
# Disable Screensaver # Disable Screensaver
read -p "Do you want to disable the screen saver? (y/N)?" choice read -p "Do you want to disable the screen saver? (y/N)?" choice
if [[ $choice =~ ^[Yy]$ ]]; then if [[ $choice =~ ^[Yy]$ ]]; then
su -c "echo -e '@xset s noblank\n@xset s off\n@xset -dpms' >> /etc/xdg/lxsession/LXDE-pi/autostart" sudo su -c "echo -e '@xset s noblank\n@xset s off\n@xset -dpms' >> /etc/xdg/lxsession/LXDE-pi/autostart"
export DISPLAY=:0; xset s noblank;xset s off;xset -dpms export DISPLAY=:0; xset s noblank;xset s off;xset -dpms
fi fi