summaryrefslogtreecommitdiff
path: root/runvdr
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-06-09 12:20:04 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-06-09 12:20:04 +0200
commit47c5bd66a8d652d8dab18cd8c32c0bc0fd07f2db (patch)
tree1bc2f1f86e2901cc8f09b8127d19b7bdf7b39f18 /runvdr
parent9abd07af9a2e834b7a3ffd8a32e56ba847581931 (diff)
downloadvdr-47c5bd66a8d652d8dab18cd8c32c0bc0fd07f2db.tar.gz
vdr-47c5bd66a8d652d8dab18cd8c32c0bc0fd07f2db.tar.bz2
Checking for loaded driver in 'runvdr'
Diffstat (limited to 'runvdr')
-rwxr-xr-xrunvdr8
1 files changed, 6 insertions, 2 deletions
diff --git a/runvdr b/runvdr
index 158cba81..e4847162 100755
--- a/runvdr
+++ b/runvdr
@@ -18,15 +18,19 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: runvdr 1.5 2001/06/01 16:23:29 kls Exp $
+# $Id: runvdr 1.6 2001/06/09 12:20:04 kls Exp $
DVBDIR="../DVB/driver"
VDRPRG="./vdr"
VDRCMD="$VDRPRG -w 60 $*"
+LSMOD="`/sbin/lsmod | grep dvbdev | wc -l`"
KILLPROC="/sbin/killproc -TERM"
-(cd $DVBDIR; make insmod)
+# Load driver if it hasn't been loaded already:
+if [ $LSMOD -eq 0 ] ; then
+ (cd $DVBDIR; make insmod)
+ fi
while (true) do
su -c "$VDRCMD" $VDRUSR