summaryrefslogtreecommitdiff
path: root/runvdr
diff options
context:
space:
mode:
authorUdo Richter <udo_richter@gmx.de>2010-06-06 18:23:51 +0200
committerUdo Richter <udo_richter@gmx.de>2013-10-09 22:59:10 +0200
commit0057cbc61992106aa8294555c3f0d73da02bdf50 (patch)
tree7efa4f26d339c663c7414b9f0e0e207232ca4231 /runvdr
parent3d2787909c074f4425ff23fdfd0471fb45881b70 (diff)
downloadrunvdr-extreme-0057cbc61992106aa8294555c3f0d73da02bdf50.tar.gz
runvdr-extreme-0057cbc61992106aa8294555c3f0d73da02bdf50.tar.bz2
New: If runvdr is invoked as XYZ, check for ~/.XYZ.conf and /etc/XYZ.conf
Diffstat (limited to 'runvdr')
-rwxr-xr-xrunvdr7
1 files changed, 7 insertions, 0 deletions
diff --git a/runvdr b/runvdr
index 54b95ca..e0cce12 100755
--- a/runvdr
+++ b/runvdr
@@ -24,6 +24,7 @@
# The project's page is at http://www.udo-richter.de/vdr/scripts.html#runvdr
+RUNVDR="${0##*/}"
RUNVDRCONF=""
@@ -333,6 +334,12 @@ function LoadConfFile() {
VDRUSER=""
# Old option, supported for compatibility only
+ if [ -z "$RUNVDRCONF" -a -r ~/.$RUNVDR.conf ] ; then
+ RUNVDRCONF=~/.$RUNVDR.conf
+ fi
+ if [ -z "$RUNVDRCONF" -a -r /etc/$RUNVDR.conf ] ; then
+ RUNVDRCONF=/etc/$RUNVDR.conf
+ fi
if [ -z "$RUNVDRCONF" -a -r ~/.runvdr.conf ] ; then
RUNVDRCONF=~/.runvdr.conf
fi