Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # initial boot
- cd /storage/steamlink/ || exit 1
- [ -f /tmp/launch_steamlink ] && rm -f /tmp/launch_steamlink
- while true; do
- if [ -f /tmp/launch_steamlink ]; then
- rm -f /tmp/launch_steamlink
- # stop kodi
- systemctl stop kodi
- while pidof kodi.bin &>/dev/null; do sleep 1; done
- # kodi stopped, launch steamlink
- /storage/steamlink/steamlink.sh &> /storage/logfiles/steamlink.log
- while pidof shell &>/dev/null; do sleep 1; done
- # steamlink stopped, restart kodi
- systemctl start kodi
- fi
- sleep 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement