diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-10-08 23:21:44 +0200 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-10-08 23:21:44 +0200 |
| commit | f9a35c63d6114a9c922bf3b84233e74b61f99f10 (patch) | |
| tree | 73ba474bc74a167eabfdcadf17071429eb3d98b3 /scripts | |
| parent | 6aa1bd4e2935d2aa770e841b607850304092f5f8 (diff) | |
bcm5974 (0.54) unstable; urgency=low
* And another one... finally got the bright idea to test it by
emulating the different product ids.
-- Henrik Rydberg <rydberg@euromail.se> Tue, 08 Jul 2008 20:59:39 +0200
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/bcm5974-post-install | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/scripts/bcm5974-post-install b/scripts/bcm5974-post-install index 8c71be0..5674d40 100755 --- a/scripts/bcm5974-post-install +++ b/scripts/bcm5974-post-install | |||
| @@ -25,17 +25,19 @@ ETCPATH=/etc/modprobe.d/$DRIVER | |||
| 25 | echo ----------------------------------------------------------------------- | 25 | echo ----------------------------------------------------------------------- |
| 26 | 26 | ||
| 27 | DIR=`dirname $0` | 27 | DIR=`dirname $0` |
| 28 | LSUSB=/usr/sbin/lsusb | ||
| 29 | |||
| 28 | PAT_HEAD="options usbhid quirks=" | 30 | PAT_HEAD="options usbhid quirks=" |
| 29 | PAT_MBA="0x05ac:0x022" | 31 | PAT[0]="05ac:022" |
| 30 | PAT_MBP="0x05ac:0x023" | 32 | PAT[1]="05ac:023" |
| 31 | MATCH_MBA=$PAT_HEAD$PAT_MBA | 33 | MATCH[0]=${PAT_HEAD}0x05ac:0x022 |
| 32 | MATCH_MBP=$PAT_HEAD$PAT_MBP | 34 | MATCH[1]=${PAT_HEAD}0x05ac:0x023 |
| 33 | 35 | ||
| 34 | if [ -x /usr/sbin/lsusb ]; then | 36 | if [ -x $LSUSB ]; then |
| 35 | if [ "lsusb|grep $PAT_MBA" != "" ]; then | 37 | if [ "`$LSUSB|grep ${PAT[0]}`" != "" ]; then |
| 36 | SED="s/#$MATCH_MBA/$MATCH_MBA/" | 38 | SED="s/#${MATCH[0]}/${MATCH[0]}/" |
| 37 | elif [ "lsusb|grep $PAT_MBP" != "" ]; then | 39 | elif [ "`$LSUSB|grep ${PAT[1]}`" != "" ]; then |
| 38 | SED="s/#$MATCH_MBP/$MATCH_MBP/" | 40 | SED="s/#${MATCH[1]}/${MATCH[1]}/" |
| 39 | else | 41 | else |
| 40 | echo No suitable device found | 42 | echo No suitable device found |
| 41 | exit 1 | 43 | exit 1 |
