1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Checking for loaded driver in 'runvdr'

This commit is contained in:
Klaus Schmidinger 2001-06-09 12:20:04 +02:00
parent 9abd07af9a
commit 47c5bd66a8
2 changed files with 10 additions and 2 deletions

View File

@ -75,3 +75,7 @@ J
Benjamin Reichardt <reichard@math.uni-goettingen.de>
for his help in debugging the transition to the new API
Henning Holtschneider <hh@holtschneider.com>
for patching 'runvdr' to check whether the driver is already loaded

8
runvdr
View File

@ -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