aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/mdev_fat.conf3
1 files changed, 3 insertions, 0 deletions
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"