diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2008-07-06 12:59:34 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2008-07-06 12:59:34 +0000 |
commit | 5368b95070c769aa0140752dbdf0a154b35f5bd7 (patch) | |
tree | 0e65dfb68130ba02fe7e002fd38683cff8b78f7b /etc | |
parent | Add hack to use an existing checksum file if plugin-name != ebuild-name. (diff) | |
download | gentoo-vdr-scripts-5368b95070c769aa0140752dbdf0a154b35f5bd7.tar.gz gentoo-vdr-scripts-5368b95070c769aa0140752dbdf0a154b35f5bd7.tar.bz2 gentoo-vdr-scripts-5368b95070c769aa0140752dbdf0a154b35f5bd7.zip |
Use yesno from openrc, but provide replacement for older baselayout.
svn path=/gentoo-vdr-scripts/trunk/; revision=625
Diffstat (limited to 'etc')
-rw-r--r-- | etc/conf.d/vdr | 2 | ||||
-rwxr-xr-x | etc/init.d/vdr | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/etc/conf.d/vdr b/etc/conf.d/vdr index c4e43c6..9f799c3 100644 --- a/etc/conf.d/vdr +++ b/etc/conf.d/vdr @@ -211,7 +211,7 @@ PLUGIN_CHECK_PATCHLEVEL="yes" # for people who really know what they do # and who want to start vdr as user root -# allowed values: YES no +# allowed values: yes no # default: no #START_VDR_AS_ROOT="no" 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" |