diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | usr/share/vdr/rcscript/pre-start-30-parameter.sh | 7 |
2 files changed, 11 insertions, 0 deletions
@@ -1,6 +1,10 @@ # ChangeLog for gentoo-vdr-scripts # $Id$ + 11 Jul 2014; Joerg Bornkessel <hd_brummy@gentoo.org> + usr/share/vdr/rcscript/pre-start-30-parameter.sh: + create cachedir on the fly, wrt bug 4994444 + 14 Apr 2014; Joerg Bornkessel <hd_brummy@gentoo.org> vdrplugin-rebuild/vdrplugin-rebuild: fixed 'portageq portdir' deprecated warning diff --git a/usr/share/vdr/rcscript/pre-start-30-parameter.sh b/usr/share/vdr/rcscript/pre-start-30-parameter.sh index 63ee1c1..0444635 100644 --- a/usr/share/vdr/rcscript/pre-start-30-parameter.sh +++ b/usr/share/vdr/rcscript/pre-start-30-parameter.sh @@ -13,7 +13,14 @@ addon_main() { [ -n "${CONFIG}" ] && add_param "--config=${CONFIG}" [ -n "${DEVICE}" ] && for i in ${DEVICE}; do add_param "--device=${i}"; done [ -n "${EPGFILE}" ] && add_param "--epgfile=${EPGFILE}" + + if [ ! -d "${CACHEDIR:-/var/cache/vdr}" ]; then + mkdir -p "${CACHEDIR:-/var/cache/vdr}" + chown vdr:vdr "${CACHEDIR:-/var/cache/vdr}" + einfo "Created directory ${CACHEDIR:-/var/cache/vdr}" + fi add_param "--cachedir=${CACHEDIR:-/var/cache/vdr}" + add_param "--log=${LOG:-1}" [ -z "${VIDEO}" ] && VIDEO="/var/vdr/video" if [ ! -d "${VIDEO}" ]; then |