projects
/
linux-usb-otg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c006460
)
less verbose, unique manufacturer and product per board
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 12 Oct 2017 15:34:01 +0000
(17:34 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Thu, 12 Oct 2017 15:34:55 +0000
(17:34 +0200)
usb-composite-all.sh
patch
|
blob
|
history
diff --git
a/usb-composite-all.sh
b/usb-composite-all.sh
index
2c1a4bc
..
ecc3938
100755
(executable)
--- a/
usb-composite-all.sh
+++ b/
usb-composite-all.sh
@@
-1,4
+1,4
@@
-#!/bin/bash -
x
e
+#!/bin/bash -e
# this file is from: https://github.com/ckuethe/usbarmory/wiki/USB-Gadgets
echo "creating composite mass-storage, serial, ethernet, hid..."
# this file is from: https://github.com/ckuethe/usbarmory/wiki/USB-Gadgets
echo "creating composite mass-storage, serial, ethernet, hid..."
@@
-24,9
+24,9
@@
echo 0x0100 > bcdDevice # v1.0.0
echo 0x0200 > bcdUSB # USB2
mkdir -p strings/0x409
echo 0x0200 > bcdUSB # USB2
mkdir -p strings/0x409
-echo "
fedcba9876543210
" > strings/0x409/serialnumber
-echo
"girst"
> strings/0x409/manufacturer
-echo
"Hardpass"
> strings/0x409/product
+echo "
deadbeef00000001
" > strings/0x409/serialnumber
+echo
`uname -r`
> strings/0x409/manufacturer
+echo
`hostname -s`
> strings/0x409/product
N="usb0"
mkdir -p functions/acm.gs0
N="usb0"
mkdir -p functions/acm.gs0