diff options
Diffstat (limited to 'media-plugins/vdr-radio/files/rc-addon.sh')
-rw-r--r-- | media-plugins/vdr-radio/files/rc-addon.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/media-plugins/vdr-radio/files/rc-addon.sh b/media-plugins/vdr-radio/files/rc-addon.sh index fbd4d6e94b3d..9c21c7835301 100644 --- a/media-plugins/vdr-radio/files/rc-addon.sh +++ b/media-plugins/vdr-radio/files/rc-addon.sh @@ -2,12 +2,25 @@ # rc-addon plugin-startup-skript for vdr-radio # # This sript is called by gentoo-vdr-scripts on start of VDR +# +# Joerg Bornkessel <hd_brummy@astrali.de> # Set default DIR to the background picture RADIO_BACKGROUND_DIR=/usr/share/vdr/radio +# Set default DIR for cache +RADIO_TMP_DIR=/var/cache/vdr-radio -plugin_pre_vdr_start() { +_make_cachedir() { + if [ ! -e "${RADIO_TMP_DIR}" ]; then + mkdir "${RADIO_TMP_DIR}" + chown -R vdr:vdr "${RADIO_TMP_DIR}" + fi +} - add_plugin_param "-f ${RADIO_BACKGROUND_DIR}" +_make_cachedir + +plugin_pre_vdr_start() { + add_plugin_param "-f ${RADIO_BACKGROUND_DIR}" + add_plugin_param "-d ${RADIO_TMP_DIR}" } |