Add a "Windows" Button
#1
Hi,
I'd wish to add a new shutdown button that restarts the system and boots the Windows partition on my HD.
I managed to do that manually, that is exit XBMC and run
sudo ./windows.sh
I'd wish to make a button for that in Transparency.

Any suggestion?

Thanks,
Claudio
Reply
#2
Make a add-on. Check out my reboot2oos add-on in my signature for a example - it has info on how to customize it to suit you.
Reply
#3
Thanks,
actually I want to boot windows for gaming, thus I'll try your addon, and let you know the results.
Reply
#4
Hi,
I tried and it works perfect with the following:
1. Install your app

2. Apply the changes as you describe apart from vi visudo that is going to be
Code:
%xbmc ALL = NOPASSWD: /sbin/reboot, /usr/sbin/grub-reboot

3. Replace reboot2oos.sh that you provide with mine
Code:
#!/bin/bash
sudo grub-reboot "Windows 7 (loader) (on /dev/sda1)"
sudo reboot
where the string is obtained by issuing the command
Code:
grep -i 'windows' /boot/grub/grub.cfg|cut -d"'" -f2

Thanks for the great job!
Reply

Logout Mark Read Team Forum Stats Members Help
Add a "Windows" Button0