aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-05-21 09:06:00 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-05-21 09:06:00 +0000
commit66108e37225746e69b801994cbdb2f99b40e27cf (patch)
treefb1cd9859bb4e3d92683a13aa36c35ec416304bf /etc
parentMoved code to reload dvb modules into a seperate executable called dvb-reload... (diff)
downloadgentoo-vdr-scripts-66108e37225746e69b801994cbdb2f99b40e27cf.tar.gz
gentoo-vdr-scripts-66108e37225746e69b801994cbdb2f99b40e27cf.tar.bz2
gentoo-vdr-scripts-66108e37225746e69b801994cbdb2f99b40e27cf.zip
Simplified code.
svn path=/gentoo-vdr-scripts/trunk/; revision=597
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vdr10
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/init.d/vdr b/etc/init.d/vdr
index f17be36..0a95d59 100755
--- a/etc/init.d/vdr
+++ b/etc/init.d/vdr
@@ -6,7 +6,6 @@ opts="${opts} watchdogrestart"
load_functions() {
cd /
- INIT_PHASE="$1"
. /usr/share/vdr/inc/functions.sh
include rc-functions
}
@@ -19,7 +18,9 @@ depend() {
}
start() {
- load_functions start
+ INIT_PHASE="start"
+
+ load_functions
local exitcode
init_vdr_start_log
@@ -87,8 +88,9 @@ start() {
}
stop() {
+ INIT_PHASE="stop"
[ -z "${VDR_BIN}" ] && VDR_BIN=/usr/bin/vdr
- load_functions stop
+ load_functions
load_addons_prefixed pre-stop
ebegin "Stopping ${VDRNAME}"
@@ -105,7 +107,7 @@ stop() {
# gets called by watchdog to restart vdr
# and possibly reload modules
watchdogrestart() {
- load_functions watchdogrestart
+ load_functions
export WATCHDOG_RESTART="1"
/etc/init.d/vdr --nodeps stop