Steam Link

Steam Link

Telev 11 Mar, 2020 @ 4:22am
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
< >
Showing 1-1 of 1 comments
WolfGuard 24 Mar, 2023 @ 1:34am 
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.
Last edited by WolfGuard; 24 Mar, 2023 @ 1:40am
< >
Showing 1-1 of 1 comments
Per page: 1530 50