Steam Link
shutdown after quitting steamlink
Hello,

I have installed the lastest version of raspbian on my Pi4.
Install steamlink and auto launch on startup.

Now, i want to shutdown the pi when i quit steamlink. It's Possible ?

Thanks for your answers
< >
Показані коментарі 11 із 1
Hello, the thread is a bit older.
I have created a script to shutdown.

Autostart:
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Add Steam Link
@steamlink

Shutdown:
vi shutdown_steam.sh
if ! pgrep -f '/bin/bash /home/USER/.local/share/SteamLink/steamlink.sh' > /dev/null ; then shutdown -h now fi
(Change to your Username)
chmod u+x shutdown_steam.sh
sudo crontab -e
*/2 * * * * /usr/bin/sudo /home/USER/shutdown_steam.sh
(Change to your Username)

The script checks every 2 minutes if a process is running with '/bin/bash /home/USER/.local/share/SteamLink/steamlink.sh' , if not it does a shutdown.

I hope it can help you.
Автор останньої редакції: WolfGuard; 24 берез. 2023 о 1:40
< >
Показані коментарі 11 із 1
На сторінку: 1530 50