Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if ! docker images | grep tianon/steam > /dev/null; then
  4. kodi-send --action="Notification(Steam,This is the first time you are starting steam. It might take a few minutes to download the container...,13000)"
  5. docker pull tianon/steam
  6. fi
  7.  
  8. # Suspend audio device
  9. kodi-send --action="RunScript(/usr/bin/audio-suspend.py)"
  10.  
  11. DOCKER_ARGS=" \
  12. --rm \
  13. --name steam \
  14. --privileged \
  15. -i \
  16. -e DISPLAY=:0.0 \
  17. -v /dev/shm:/dev/shm \
  18. -v /var/media:/media \
  19. -v /storage/.config/asound.conf:/etc/asound.conf \
  20. -v config:/root/.config \
  21. -v /tmp/.X11-unix:/tmp/.X11-unix \
  22. -v /var/run/dbus:/run/dbus"
  23.  
  24. STEAM_ARGS=" \
  25. -full \
  26. -tenfoo \"
  27.  
  28.  
  29. /usr/sbin/docker run $DOCKER_ARGS tianon/steam steam $STEAM_ARGS "$@" > /tmp/steam.log 2>&1
  30.  
  31. # Resume audio device
  32. kodi-send --action="RunScript(/usr/bin/audio-resume.py)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement