diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-12-15 18:09:03 +0000 |
commit | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch) | |
tree | 4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /media-plugins/vdr-radio/files | |
parent | b284a3168fa91a038925d2ecf5e4791011ea5e7d (diff) |
gentoo resync : 15.12.2019
Diffstat (limited to 'media-plugins/vdr-radio/files')
-rw-r--r-- | media-plugins/vdr-radio/files/rc-addon.sh | 17 | ||||
-rw-r--r-- | media-plugins/vdr-radio/files/rc-addon.sh-0.2.0 | 15 |
2 files changed, 15 insertions, 17 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}" } diff --git a/media-plugins/vdr-radio/files/rc-addon.sh-0.2.0 b/media-plugins/vdr-radio/files/rc-addon.sh-0.2.0 deleted file mode 100644 index ce83253073a7..000000000000 --- a/media-plugins/vdr-radio/files/rc-addon.sh-0.2.0 +++ /dev/null @@ -1,15 +0,0 @@ -# -# rc-addon plugin-startup-skript for vdr-radio -# -# This sript is called by gentoo-vdr-scripts on start of VDR - -# Set default DIR to the background picture -RADIO_BACKGROUND_DIR=/usr/share/vdr/radio -RADIO_TMP_DIR=/var/cache/vdr-radio - -plugin_pre_vdr_start() { - - add_plugin_param "-f ${RADIO_BACKGROUND_DIR}" - add_plugin_param "-d ${RADIO_TMP_DIR}" - -} |