diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-07-11 14:39:06 +0200 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2014-07-11 14:39:06 +0200 |
commit | e81dbf72d29318db828ff8fbbc154eba15a253f8 (patch) | |
tree | 2fa7985db8a74f071074c982d76593088a8e57dd /usr/share | |
parent | fixed 'portageq portdir' deprecated warning (diff) | |
download | gentoo-vdr-scripts-e81dbf72d29318db828ff8fbbc154eba15a253f8.tar.gz gentoo-vdr-scripts-e81dbf72d29318db828ff8fbbc154eba15a253f8.tar.bz2 gentoo-vdr-scripts-e81dbf72d29318db828ff8fbbc154eba15a253f8.zip |
create cachedir on the fly, wrt bug 4994444
Diffstat (limited to 'usr/share')
-rw-r--r-- | usr/share/vdr/rcscript/pre-start-30-parameter.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |