aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d/vdr')
-rwxr-xr-xetc/init.d/vdr6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/init.d/vdr b/etc/init.d/vdr
index cf87e07..a63a0a2 100755
--- a/etc/init.d/vdr
+++ b/etc/init.d/vdr
@@ -55,7 +55,7 @@ start_vdr() {
local _openvt= openvt_opts= TERM_DEV=/dev/tty${TERMINAL}
if [ -n "${TERMINAL}" -a -e "${TERM_DEV}" ]; then
- [ "${SWITCH_TO_TERMINAL}" = "yes" ] && openvt_opts="-s"
+ yesno "${SWITCH_TO_TERMINAL}" && openvt_opts="-s"
_openvt="openvt -c ${TERMINAL} ${openvt_opts} --"
{
@@ -105,7 +105,7 @@ stop_vdr() {
}
start_watchdog() {
- [ "${ENABLE_EXTERNAL_WATCHDOG:-yes}" = "yes" ] || return 0
+ yesno "${ENABLE_EXTERNAL_WATCHDOG:-yes}" || return 0
ebegin "Starting vdr watchdog"
start-stop-daemon \
--start \
@@ -120,7 +120,7 @@ start_watchdog() {
stop_watchdog() {
- if [ "${ENABLE_EXTERNAL_WATCHDOG:-yes}" = "yes" ]; then
+ if yesno "${ENABLE_EXTERNAL_WATCHDOG:-yes}"; then
ebegin "Stopping vdr watchdog"
start-stop-daemon --stop --pidfile /var/run/vdrwatchdog.pid --name vdr-watchdogd
eend $? "failed stopping watchdog"