greybus: lsgb: Minor tweaks
Make it executable on an Android system Change layout to be show heirachy a bit better. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
7c154711a6
commit
0f65fb1ea2
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/system/bin/sh
|
||||
#
|
||||
# 'ls greybus'
|
||||
#
|
||||
|
@ -44,8 +44,8 @@ print_interface() {
|
|||
local serial=`cat serial_number`
|
||||
local vs=`cat vendor_string`
|
||||
local ps=`cat product_string`
|
||||
printf "Interface: %s %s:%s ver:%s \"%s\" \"%s\"\n"\
|
||||
${iid} ${vid} ${pid} ${version} "${vs}" "${ps}"
|
||||
printf " Intf %02d %s:%s %s %s v%s\n" \
|
||||
${iid} ${vid} ${pid} "${vs}" "${ps}" ${version}
|
||||
}
|
||||
|
||||
print_bundle() {
|
||||
|
@ -101,17 +101,19 @@ print_bundle() {
|
|||
"0xff" ) class_type="Vendor"
|
||||
;;
|
||||
esac
|
||||
printf " Bundle: %s %s (%s)\n" ${id} ${class_type} ${class}
|
||||
printf " Bundle %02d Class %s (%s)\n" ${id} ${class} ${class_type}
|
||||
}
|
||||
|
||||
print_svc() {
|
||||
local devname=$1
|
||||
printf " SVC: ${devname}\n"
|
||||
local bus=`cat uevent | grep BUS | cut -f 2 -d '='`
|
||||
printf " SVC %02d\n" ${bus}
|
||||
}
|
||||
|
||||
print_host_device() {
|
||||
local devname=$1
|
||||
printf " Host: ${devname}\n"
|
||||
local bus=`cat uevent | grep BUS | cut -f 2 -d '='`
|
||||
printf "Bus %02d\n" ${bus}
|
||||
}
|
||||
|
||||
print_unknown() {
|
||||
|
|
Loading…
Reference in New Issue