device/generic/common
修訂 | e2a04f5e8dd953d2b6a929d3f05b91ab4614e803 (tree) |
---|---|
時間 | 2016-11-02 16:18:31 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
init.sh: use lsusb from our busybox
We've implemented -v option in busybox lsusb to list usb classes.
Avoid using lsusb of toybox which doesn't have the function.
@@ -66,7 +66,7 @@ function init_hal_bluetooth() | ||
66 | 66 | modprobe btusb |
67 | 67 | ;; |
68 | 68 | *) |
69 | - for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do | |
69 | + for bt in $(busybox lsusb -v | awk ' /Class:.E0/ { print $9 } '); do | |
70 | 70 | chown 1002.1002 $bt && chmod 660 $bt |
71 | 71 | done |
72 | 72 | ;; |