Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #My .xinitrc file to enable xbmc to restart or shutdown the box from the ui.
- #!/bin/bash
- export XBMC_HOME="/root/XBMC";
- export DISPLAY=":0"
- sleep 2;
- nvidia-settings -l; # just ignore this if you dont load nvidia-settings configuration
- /root/XBMC/xbmc.bin -q -fs;
- RETURNVAL="$?"
- if [ $RETURNVAL = 66 ]
- then
- shutdown -r now
- elif [ $RETURNVAL = 0 ]
- then
- shutdown -h now
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement