This is my first addon for xbmc and I have copied the addon framework from the xbmc-backup addon but I'm sure that it doesn't use any code specific to the xbmc-backup addon.
The addon requires setting up before installation and this will allow you to tailor the addon to your needs, I use it to reboot from linux to windows for games and emulators so I have the addon named 'games' with a game pad as a icon. Open the zip file, change what is needed and re-zip then install.
First off you need to configure grub. Im basing this off my set up where 0 is the grub linux entry which is usually boot from and 5 is the listing number of the windows partition that I reboot to. This is on Ubuntu 12.04 x64.
Code:
sudo nano /etc/default/grubThe first uncommented option should be GRUB_DEFAULT=, make sure that line is:
Code:
GRUB_DEFAULT=savedNow update grub:
Code:
sudo update-grubNext you need to add the commands needed to reboot the pc to /etc/sudoers so they can run without having to enter the root password:
Code:
sudo visudoThe end of the file should look like this. NOTE you need replace <your username> with the username xbmc uses:
Code:
#includedir /etc/sudoers.d
<your username> ALL=(ALL) NOPASSWD: /sbin/reboot, /usr/sbin/grub-set-default, /usr/sbin/grub-rebootTo change the icon and name of the plugin replace the icon.png file and edit the addon.xml (name=) within the zip file. Edit default.py to change the command settings need to reboot to the OS of your choice. Make sure these commands run from the command line with no password.
The link to the addon.

Search
Help