From e2a04f5e8dd953d2b6a929d3f05b91ab4614e803 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Wed, 2 Nov 2016 15:18:31 +0800 Subject: [PATCH] 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. --- init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.sh b/init.sh index c6f9760..a9e2bb4 100644 --- a/init.sh +++ b/init.sh @@ -66,7 +66,7 @@ function init_hal_bluetooth() modprobe btusb ;; *) - for bt in $(lsusb -v | awk ' /Class:.E0/ { print $9 } '); do + for bt in $(busybox lsusb -v | awk ' /Class:.E0/ { print $9 } '); do chown 1002.1002 $bt && chmod 660 $bt done ;; -- 2.11.0