summaryrefslogtreecommitdiff
path: root/runvdr
diff options
context:
space:
mode:
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