From 96e5127d60af1db5b2d28ba91cc4a0d0b6a5e95b Mon Sep 17 00:00:00 2001 From: Matthias Schwarzott Date: Tue, 17 Apr 2007 12:56:47 +0000 Subject: Removed bash specific stuff. (Portage version: 2.1.2.4) --- media-plugins/vdr-remote/ChangeLog | 5 ++- media-plugins/vdr-remote/files/rc-addon.sh | 58 +++++++++++++++--------------- 2 files changed, 32 insertions(+), 31 deletions(-) (limited to 'media-plugins') diff --git a/media-plugins/vdr-remote/ChangeLog b/media-plugins/vdr-remote/ChangeLog index dc0b0bd87e50..3b2e8334968a 100644 --- a/media-plugins/vdr-remote/ChangeLog +++ b/media-plugins/vdr-remote/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-plugins/vdr-remote # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-remote/ChangeLog,v 1.13 2007/03/06 16:58:03 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-remote/ChangeLog,v 1.14 2007/04/17 12:56:47 zzam Exp $ + + 17 Apr 2007; Matthias Schwarzott files/rc-addon.sh: + Removed bash specific stuff. *vdr-remote-0.3.9 (06 Mar 2007) diff --git a/media-plugins/vdr-remote/files/rc-addon.sh b/media-plugins/vdr-remote/files/rc-addon.sh index 3040192e17d2..5b5bdff49d18 100644 --- a/media-plugins/vdr-remote/files/rc-addon.sh +++ b/media-plugins/vdr-remote/files/rc-addon.sh @@ -6,32 +6,35 @@ check_device() { local handlers="${1}" local name="${2}" local eventdev="" - [[ "${handlers}" == "" ]] && return + [ "${handlers}" = "" ] && return + local handler for handler in ${handlers}; do - case ${handler} in + case "${handler}" in event*) eventdev=${handler} ;; esac done - if [[ "${eventdev}" == "" ]]; then - [[ "${evdev_warning_showed}" != "1" ]] \ - && echo "you need to load module evdev for autodetect input-devices to work" - evdev_warning_showed=1 - return - fi - if [[ (${name/dvb/} != ${name}) || (${name/DVB/} == ${name}) ]]; then + + if [ "${eventdev}" = "" ]; then + if [ "${evdev_warning_showed}" != "1" ]; then + echo "you need to load module evdev for autodetect input-devices to work" + evdev_warning_showed=1 + fi return fi - - einfo_level1 "Autodetect Input Device ${eventdev} (Name: ${name})" - REMOTE_PLUGIN_INPUT_DEVICE="${REMOTE_PLUGIN_INPUT_DEVICE} /dev/input/${eventdev}" - return + + case "${name}" in + *dvb*|*DVB*) + einfo_level1 "Autodetect Input Device ${eventdev} (Name: ${name})" + REMOTE_PLUGIN_INPUT_DEVICE="${REMOTE_PLUGIN_INPUT_DEVICE} /dev/input/${eventdev}" + ;; + esac } autodetect_input_devices() { - [[ -e /proc/bus/input/devices ]] || return + [ -e /proc/bus/input/devices ] || return exec 3