From 0057cbc61992106aa8294555c3f0d73da02bdf50 Mon Sep 17 00:00:00 2001 From: Udo Richter Date: Sun, 6 Jun 2010 18:23:51 +0200 Subject: New: If runvdr is invoked as XYZ, check for ~/.XYZ.conf and /etc/XYZ.conf --- runvdr | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'runvdr') 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 -- cgit v1.2.3