aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-04-16 07:49:53 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-04-16 07:49:53 +0000
commitf9cbe18dbdfa79009099b6b30ec6d28dc6bc0de2 (patch)
tree0ad6f5fe48dffe3a64f4fc6720411852cddd48a7 /usr/share/vdr/rcscript/pre-start-30-parameter.sh
parentRemoved bash specific code. (diff)
downloadgentoo-vdr-scripts-f9cbe18dbdfa79009099b6b30ec6d28dc6bc0de2.tar.gz
gentoo-vdr-scripts-f9cbe18dbdfa79009099b6b30ec6d28dc6bc0de2.tar.bz2
gentoo-vdr-scripts-f9cbe18dbdfa79009099b6b30ec6d28dc6bc0de2.zip
Removed more bash specific code.
svn path=/gentoo-vdr-scripts/trunk/; revision=427
Diffstat (limited to 'usr/share/vdr/rcscript/pre-start-30-parameter.sh')
-rw-r--r--usr/share/vdr/rcscript/pre-start-30-parameter.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/usr/share/vdr/rcscript/pre-start-30-parameter.sh b/usr/share/vdr/rcscript/pre-start-30-parameter.sh
index 3599e8b..a2b37d2 100644
--- a/usr/share/vdr/rcscript/pre-start-30-parameter.sh
+++ b/usr/share/vdr/rcscript/pre-start-30-parameter.sh
@@ -1,37 +1,37 @@
# $Id$
addon_main() {
add_param "--watchdog=${INTERNAL_WATCHDOG:-60}"
- [[ -n "${AC3_AUDIO}" ]] && add_param "--audio=${AC3_AUDIO}"
- [[ ${MUTE} == yes ]] && add_param "--mute"
- [[ -n "${CONFIG}" ]] && add_param "--config=${CONFIG}"
- [[ -n "${DEVICE}" ]] && for i in ${DEVICE}; do add_param "--device=${i}"; done
- [[ -n "${EPGFILE}" ]] && add_param "--epgfile=${EPGFILE}"
+ [ -n "${AC3_AUDIO}" ] && add_param "--audio=${AC3_AUDIO}"
+ [ "${MUTE}" = "yes" ] && add_param "--mute"
+ [ -n "${CONFIG}" ] && add_param "--config=${CONFIG}"
+ [ -n "${DEVICE}" ] && for i in ${DEVICE}; do add_param "--device=${i}"; done
+ [ -n "${EPGFILE}" ] && add_param "--epgfile=${EPGFILE}"
add_param "--log=${LOG:-1}"
- [[ -z "${VIDEO}" ]] && VIDEO="/var/vdr/video"
- if [[ ! -d "${VIDEO}" ]]; then
+ [ -z "${VIDEO}" ] && VIDEO="/var/vdr/video"
+ if [ ! -d "${VIDEO}" ]; then
mkdir -p "${VIDEO}"
chown vdr:vdr "${VIDEO}"
einfo "Created directory ${VIDEO}"
fi
add_param "--video=${VIDEO}"
- [[ -n "${SVDRP_PORT}" ]] && add_param "--port=${SVDRP_PORT}"
+ [ -n "${SVDRP_PORT}" ] && add_param "--port=${SVDRP_PORT}"
- [[ -n "${RECORD_HOOK}" ]] && add_param "--record=${RECORD_HOOK}"
+ [ -n "${RECORD_HOOK}" ] && add_param "--record=${RECORD_HOOK}"
- if [[ -n "${CAP_IRCTRL_RUNTIME_PARAM}" ]] && [[ -n "${IR_CTRL}" ]]; then
+ if [ -n "${CAP_IRCTRL_RUNTIME_PARAM}" ] && [ -n "${IR_CTRL}" ]; then
case "${IR_CTRL}" in
lirc|rcu) add_param "--${IR_CTRL}" ;;
esac
fi
- if [[ -n "${CAP_VFAT_RUNTIME_PARAM}" ]] && [[ "${VFAT_FILENAMES}" == "yes" ]]; then
+ if [ -n "${CAP_VFAT_RUNTIME_PARAM}" ] && [ "${VFAT_FILENAMES}" = "yes" ]; then
add_param "--vfat"
fi
add_param "--record=/usr/share/vdr/bin/vdrrecord-gate.sh"
- if [[ -n "${VDR_EXTRA_OPTIONS}" ]]; then
+ if [ -n "${VDR_EXTRA_OPTIONS}" ]; then
add_param ${VDR_EXTRA_OPTIONS}
fi
return 0