From f693c8a2639f1d43f1ecfcddd46c130183a59a85 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Wed, 22 Feb 2023 22:13:01 +0100 Subject: [PATCH] fix autostart --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8ca990b..5eb9807 100755 --- a/install.sh +++ b/install.sh @@ -197,11 +197,11 @@ echo "mesg n" >> /home/$SUDO_USER/.profile mkdir -p /etc/systemd/system/getty@tty1.service.d echo "[Service]" > /etc/systemd/system/getty@tty1.service.d/override.conf echo "ExecStart=" >> /etc/systemd/system/getty@tty1.service.d/override.conf -# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/systemd/system/getty@tty1.service.d/override.conf +# echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf # Start pandora from bashrc -echo "pandora-box/pandora-box.py" >> ~/.bashrc +su - $SUDO_USER -c 'echo "pandora-box/pandora-box.py" >> ~/.bashrc' # Copy ini file cp pandora-box.ini.curses pandora-box.ini