forked from boxeehacks/boxeehack
-
Notifications
You must be signed in to change notification settings - Fork 33
Plugins
boxeehacks edited this page Dec 24, 2012
·
3 revisions
Boxee+ has a very simple plugin system (since 1.4.0). It allows developers to expand the functionality of the BoxeeBox.
Plugins are stored in /data/plugins (/plugins via ftp). They are structured as follows:
data +- plugins +- myplugin +- bin - gets added to the path automatically +- init.sh - should accept "start" and "stop" parameters
An example of the simplest version of such a plugin:
#!/bin/sh BASEDIR=`dirname $0` if [ "$1" == "start" ]; then chmod +x ${BASEDIR}/bin/* echo "Test Plugin Started" elif [ "$1" == "stop" ]; then echo "Test Plugin Stopped" else echo "Unknown command received" fi