diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rwxr-xr-x | runvdr | 7 |
2 files changed, 8 insertions, 0 deletions
@@ -5,6 +5,7 @@ xxxx-xx-xx: - Fix: Debian init script: Pull default locale - Fix: Fail to load if AddPlugin is last in runvdr.conf - Fix: Error message if runvdr.conf fails +- New: If runvdr is invoked as XYZ, check for ~/.XYZ.conf and /etc/XYZ.conf 2009-06-28: Version 0.4.2 - New: Support -i and --instance of VDR-1.7.4+ @@ -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 |