summaryrefslogtreecommitdiff
path: root/runvdr.template
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-05 10:43:42 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-05 10:43:42 +0100
commit9c9e200df55ea0e1bf2a0b627150fe46afebbf6f (patch)
tree138cfe30dda7416c4857889e70705eb6518e743f /runvdr.template
parentb3b0747328556a36005bbe710490192c433657c5 (diff)
downloadvdr-9c9e200df55ea0e1bf2a0b627150fe46afebbf6f.tar.gz
vdr-9c9e200df55ea0e1bf2a0b627150fe46afebbf6f.tar.bz2
Modified runvdr.template to improve compatibility with the "bash" and "dash" shells
Diffstat (limited to 'runvdr.template')
-rwxr-xr-xrunvdr.template10
1 files changed, 6 insertions, 4 deletions
diff --git a/runvdr.template b/runvdr.template
index 2f6fd87b..745db042 100755
--- a/runvdr.template
+++ b/runvdr.template
@@ -20,7 +20,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: runvdr.template 2.2 2011/04/17 12:34:30 kls Exp $
+# $Id: runvdr.template 3.1 2015/02/05 10:28:53 kls Exp $
VDRPRG="./vdr"
@@ -43,19 +43,21 @@ KILL="/usr/bin/killall -q -TERM"
# Detect whether the DVB driver is already loaded
# and return 0 if it *is* loaded, 1 if not:
-function DriverLoaded()
+DriverLoaded()
{
return 1
}
# Load all DVB driver modules needed for your hardware:
-function LoadDriver()
+LoadDriver()
{
+ return 0
}
# Unload all DVB driver modules loaded in LoadDriver():
-function UnloadDriver()
+UnloadDriver()
{
+ return 0
}
# Load driver if it hasn't been loaded already: