diff options
Diffstat (limited to 'ebuilds')
-rw-r--r-- | ebuilds/files/rc-addon.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ebuilds/files/rc-addon.sh b/ebuilds/files/rc-addon.sh new file mode 100644 index 0000000..4acfb1d --- /dev/null +++ b/ebuilds/files/rc-addon.sh @@ -0,0 +1,10 @@ +plugin_pre_vdr_start() { + + if [ "${ANDROVDR_PORT:=6420}" != 6420 ]; then + add_plugin_param "-p ${ANDROVDR_PORT}" + fi + + if [ -n "${ANDROVDR_PASSWORD}" ]; then + add_plugin_param "-P ${ANDROVDR_PASSWORD}" + fi +} |