diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-17 09:48:04 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-04-17 09:48:04 +0000 |
commit | e42f81ee21d170d2d780e2ccfe18a906cb2ce5b4 (patch) | |
tree | f61af6b0f8bfed38a0f0a0c215a11c8a6ad21872 /media-plugins/vdr-powermate | |
parent | Stable on alpha wrt bug #172575 (diff) | |
download | historical-e42f81ee21d170d2d780e2ccfe18a906cb2ce5b4.tar.gz historical-e42f81ee21d170d2d780e2ccfe18a906cb2ce5b4.tar.bz2 historical-e42f81ee21d170d2d780e2ccfe18a906cb2ce5b4.zip |
Removed bash specific stuff.
Package-Manager: portage-2.1.2.4
Diffstat (limited to 'media-plugins/vdr-powermate')
-rw-r--r-- | media-plugins/vdr-powermate/ChangeLog | 7 | ||||
-rwxr-xr-x | media-plugins/vdr-powermate/files/rc-addon.sh | 16 |
2 files changed, 11 insertions, 12 deletions
diff --git a/media-plugins/vdr-powermate/ChangeLog b/media-plugins/vdr-powermate/ChangeLog index 824e63cdb75b..a0243e6fd4c2 100644 --- a/media-plugins/vdr-powermate/ChangeLog +++ b/media-plugins/vdr-powermate/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-plugins/vdr-powermate -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/ChangeLog,v 1.6 2006/12/03 15:01:31 zzam Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/ChangeLog,v 1.7 2007/04/17 09:48:01 zzam Exp $ + + 17 Apr 2007; Matthias Schwarzott <zzam@gentoo.org> files/rc-addon.sh: + Removed bash specific stuff. 03 Dec 2006; Matthias Schwarzott <zzam@gentoo.org> +files/vdr-powermate-0.0.3-uint64.diff, vdr-powermate-0.0.3.ebuild: diff --git a/media-plugins/vdr-powermate/files/rc-addon.sh b/media-plugins/vdr-powermate/files/rc-addon.sh index eb431626ed89..472174733bf2 100755 --- a/media-plugins/vdr-powermate/files/rc-addon.sh +++ b/media-plugins/vdr-powermate/files/rc-addon.sh @@ -1,5 +1,5 @@ # plugin-startup-skript for powermate-plugin -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/files/rc-addon.sh,v 1.1 2005/12/13 20:59:06 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-powermate/files/rc-addon.sh,v 1.2 2007/04/17 09:48:01 zzam Exp $ # try to autodetect device for powermate @@ -13,16 +13,16 @@ detect_powermate() { for devfile in /dev/input/event*; do # check if devile is device - [[ -c "${devfile}" ]] || continue + [ -c "${devfile}" ] || continue # and for corresponding sysfs-entry base=${devfile/\/dev\/input\//} sysfile=/sys/class/input/${base}/device/driver - [[ -L "${sysfile}" ]] || continue + [ -L "${sysfile}" ] || continue # if driver-link contains powermate linkdest=$(readlink ${sysfile}) - [[ "${linkdest}" != "${linkdest/powermate/}" ]] || continue + [ "${linkdest}" != "${linkdest#*powermate}" ] || continue # the we are done POWERMATE_DEVICE="${devfile}" @@ -31,11 +31,11 @@ detect_powermate() { } plugin_pre_vdr_start() { - if [[ "${POWERMATE_DEVICE:-auto}" == "auto" ]]; then + if [ "${POWERMATE_DEVICE:-auto}" = "auto" ]; then detect_powermate fi - if [[ -c "${POWERMATE_DEVICE}" ]]; then + if [ -c "${POWERMATE_DEVICE}" ]; then chown vdr:vdr "${POWERMATE_DEVICE}" add_plugin_param "--device=${POWERMATE_DEVICE}" else @@ -43,7 +43,3 @@ plugin_pre_vdr_start() { fi } -# for compatibility -if [[ ${SCRIPT_API:-1} -lt 2 ]]; then - plugin_pre_vdr_start -fi |