Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. desktop@steamos:~$ cat /usr/bin/steamos-update
  2. #! /bin/sh
  3.  
  4. echo $$ > /tmp/steamos-update.pid
  5.  
  6. apt-get update -y -q
  7. unattended-upgrade
  8.  
  9. # workaround for early images which didn't have nvidia-vdpau-driver:i386 preinstalled
  10. if [ ! -f /usr/lib/i386-linux-gnu/vdpau/libvdpau_nvidia.so.1 ] ; then
  11. apt-get -y install nvidia-vdpau-driver:i386
  12. fi
  13.  
  14. # workaround for early images which didn't have i965-va-driver:i386 preinstalled
  15. if [ ! -f /usr/lib/i386-linux-gnu/dri/i965_drv_video.so ] ; then
  16. apt-get -y install i965-va-driver:i386
  17. fi
  18.  
  19. # signal steam to refresh its inbox if we need a reboot
  20. if [ -f /var/run/reboot-required ] && [ "`pidof -s steam`" != '' ] ; then
  21. STEAMPID=`pidof -s steam`
  22. STEAMUSER=`ps -p $STEAMPID -o user=`
  23. su $STEAMUSER -c steam steam://refreshinbox
  24. fi
  25.  
  26. rm /tmp/steamos-update.pid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement