diff options
Diffstat (limited to 'scripts/bcm5974-pre-install')
| -rwxr-xr-x | scripts/bcm5974-pre-install | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/bcm5974-pre-install b/scripts/bcm5974-pre-install index 3c4556e..1e2b864 100755 --- a/scripts/bcm5974-pre-install +++ b/scripts/bcm5974-pre-install | |||
| @@ -25,19 +25,18 @@ LSUSB=/usr/sbin/lsusb | |||
| 25 | PAT[0]="05ac:022" | 25 | PAT[0]="05ac:022" |
| 26 | PAT[1]="05ac:023" | 26 | PAT[1]="05ac:023" |
| 27 | 27 | ||
| 28 | #if [ -x $LSUSB ]; then | 28 | if [ -x $LSUSB ]; then |
| 29 | if true; then | ||
| 30 | if [ "`$LSUSB|grep ${PAT[0]}`" != "" ]; then | 29 | if [ "`$LSUSB|grep ${PAT[0]}`" != "" ]; then |
| 31 | exit 0 | 30 | exit 0 |
| 32 | elif [ "`$LSUSB|grep ${PAT[1]}`" != "" ]; then | 31 | elif [ "`$LSUSB|grep ${PAT[1]}`" != "" ]; then |
| 33 | exit 0 | 32 | exit 0 |
| 34 | else | 33 | else |
| 35 | echo bcm5974: no suitable device found | 34 | echo bcm5974: no suitable device found |
| 36 | exit 1 | 35 | exit -1 |
| 37 | fi | 36 | fi |
| 38 | else | 37 | else |
| 39 | echo bcm5974: cannot determine device type | 38 | echo bcm5974: cannot determine device type |
| 40 | exit 1 | 39 | exit -1 |
| 41 | fi | 40 | fi |
| 42 | 41 | ||
| 43 | exit 0 | 42 | exit 0 |
