Advertisement
Guest User

netbrain

a guest
Oct 1st, 2008
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #My .xinitrc file to enable xbmc to restart or shutdown the box from the ui.
  2.  
  3. #!/bin/bash
  4. export XBMC_HOME="/root/XBMC";
  5. export DISPLAY=":0"
  6.  
  7. sleep 2;
  8. nvidia-settings -l; # just ignore this if you dont load nvidia-settings configuration
  9.  
  10.  
  11. /root/XBMC/xbmc.bin -q -fs;
  12. RETURNVAL="$?"
  13.  
  14. if [ $RETURNVAL = 66 ]
  15. then
  16.   shutdown -r now
  17. elif [ $RETURNVAL = 0 ]
  18. then
  19.   shutdown -h now
  20. fi
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement