From: Denys Vlasenko Date: Wed, 16 May 2012 01:03:54 +0000 (+0200) Subject: examples/mdev_fat.conf: small addition X-Git-Tag: 1_21_0~174 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a6a56c77871e8ae249c061c4478d25a8674e762;p=oweals%2Fbusybox.git examples/mdev_fat.conf: small addition I needed this to make Android's adb see my phone Signed-off-by: Denys Vlasenko --- diff --git a/examples/mdev_fat.conf b/examples/mdev_fat.conf index df329b4b5..da28bc36b 100644 --- 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"