projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02b8b9b
)
examples/mdev_fat.conf: small addition
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 16 May 2012 01:03:54 +0000
(
03:03
+0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 16 May 2012 01:03:54 +0000
(
03:03
+0200)
I needed this to make Android's adb see my phone
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
examples/mdev_fat.conf
patch
|
blob
|
history
diff --git
a/examples/mdev_fat.conf
b/examples/mdev_fat.conf
index df329b4b54688cdf0bd1d43ffac05b76307df0d6..da28bc36bdac354484337eddfd2b910355d62c1b 100644
(file)
--- a/
examples/mdev_fat.conf
+++ b/
examples/mdev_fat.conf
@@
-108,3
+108,6
@@
usbdev[0-9].[0-9]_.* root:root 660
# zaptel devices
zap(.*) root:dialout 660 =zap/%1
dahdi!(.*) root:dialout 660 =dahdi/%1
+
+# If $DEVNAME exists, create device with this name
+$DEVNAME=bus/usb/.* 0:0 660 ! @mkdir -p "`dirname "$DEVNAME"`"; mknod -m 0660 "$DEVNAME" c "$MAJOR" "$MINOR"