summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-09 16:21:03 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-09 16:21:03 +0100
commit732387379d1ba334693064965ae4d0652493f8b8 (patch)
tree49506bd22512100bd212c7cc1dd24e55b53b06a4
parent299a600c3ce1ae355842be39d452464e524b7e3b (diff)
downloadvdr-732387379d1ba334693064965ae4d0652493f8b8.tar.gz
vdr-732387379d1ba334693064965ae4d0652493f8b8.tar.bz2
Fixed the 'su' call in 'runvdr'
-rw-r--r--CONTRIBUTORS4
-rw-r--r--HISTORY2
-rwxr-xr-xrunvdr4
3 files changed, 8 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 5a5bc701..3e0f81f1 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -896,3 +896,7 @@ Antonino Sergi <voyaser@tiscalinet.it>
Martin Holst <holstm@gmx.de>
for reporting a lockup in 1.3.0 when the EPG scanner kicks in
+
+Robert Huitl <vdr@huitl.de>
+ for fixing 'su' call in 'runvdr' to make it work on systems that require the
+ user name to appear before the command option
diff --git a/HISTORY b/HISTORY
index 24fd360c..61c70505 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2558,3 +2558,5 @@ Video Disk Recorder Revision History
- Added support for selecting preferred EPG languages (based upon a patch by
Teemu Rantanen).
- Fixed a 'const' in libsi/si.h (thanks to Marcel Wiesweg).
+- Fixed the 'su' call in 'runvdr' to make it work on systems that require the
+ user name to appear before the command option (thanks to Robert Huitl).
diff --git a/runvdr b/runvdr
index 9c639914..883e16b1 100755
--- a/runvdr
+++ b/runvdr
@@ -18,7 +18,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: runvdr 1.11 2003/08/26 16:15:41 kls Exp $
+# $Id: runvdr 1.12 2004/01/09 16:19:26 kls Exp $
DVBDIR="../DVB/driver"
VDRPRG="./vdr"
@@ -33,7 +33,7 @@ if [ $LSMOD -eq 0 ] ; then
fi
while (true) do
- su -c "$VDRCMD" $VDRUSR
+ su $VDRUSR -c "$VDRCMD"
if test $? -eq 0 -o $? -eq 2; then exit; fi
date
echo "restarting VDR"