diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2007-02-17 23:44:33 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2007-02-17 23:44:33 +0000 |
commit | 70fa8fbad56ae37545561423bfdab73bf70a99ce (patch) | |
tree | 73c6eb45c462ef9c143c10b4911b54ac7d9fa44d /dev-libs/cyberjack | |
parent | fix pcsc-lite usbdropdir stuff (diff) | |
download | gentoo-2-70fa8fbad56ae37545561423bfdab73bf70a99ce.tar.gz gentoo-2-70fa8fbad56ae37545561423bfdab73bf70a99ce.tar.bz2 gentoo-2-70fa8fbad56ae37545561423bfdab73bf70a99ce.zip |
add hack for >=dev-libs/libusb-0.1.12 to udev script
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-libs/cyberjack')
-rw-r--r-- | dev-libs/cyberjack/ChangeLog | 5 | ||||
-rwxr-xr-x | dev-libs/cyberjack/files/cyberjack.sh | 18 |
2 files changed, 18 insertions, 5 deletions
diff --git a/dev-libs/cyberjack/ChangeLog b/dev-libs/cyberjack/ChangeLog index ba718234dd45..5b0d07514279 100644 --- a/dev-libs/cyberjack/ChangeLog +++ b/dev-libs/cyberjack/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-libs/cyberjack # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.2 2007/02/17 23:34:10 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/cyberjack/ChangeLog,v 1.3 2007/02/17 23:44:33 wschlich Exp $ + + 17 Feb 2007; Wolfram Schlich <wschlich@gentoo.org> files/cyberjack.sh: + add hack for >=dev-libs/libusb-0.1.12 to udev script 17 Feb 2007; Wolfram Schlich <wschlich@gentoo.org> cyberjack-2.0.13.ebuild: diff --git a/dev-libs/cyberjack/files/cyberjack.sh b/dev-libs/cyberjack/files/cyberjack.sh index 9993dffb1fee..121e77d7197e 100755 --- a/dev-libs/cyberjack/files/cyberjack.sh +++ b/dev-libs/cyberjack/files/cyberjack.sh @@ -4,14 +4,24 @@ dev_mode=0664 # using the cyberJack libusb driver if [ -n "${DEVICE}" ]; then - dev="${DEVICE}" + dev="${DEVICE}" + # hack for >=dev-libs/libusb-0.1.12 + # which uses /dev/bus/usb/NNN/MMM + # instead of /proc/bus/usb/NNN/MMM + case "${dev}" in + /proc/bus/usb/*) + dev="${dev} ${dev/proc/dev}" + ;; + esac fi # using the cyberJack kernel module if [ -n "${DEVNAME}" ]; then - dev="${DEVNAME}" + dev="${DEVNAME}" fi # set device group and permissions -/bin/chgrp "${dev_group}" "${dev}" -/bin/chmod "${dev_mode}" "${dev}" +for d in ${dev}; do + /bin/chgrp "${dev_group}" "${d}" + /bin/chmod "${dev_mode}" "${d}" +done |