summaryrefslogtreecommitdiffstats
path: root/package/hotplug2/files/hotplug2-init.rules
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-05 18:33:18 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-05 18:33:18 +0000
commit2d6b53deec9dab294cb8e0aafe81ecc7aba5ba4e (patch)
treee281bcd95cb9e165ddac1b4ae8f002f20e6acff9 /package/hotplug2/files/hotplug2-init.rules
parentb755dc66dfca48518b24450277173be4671fcde5 (diff)
use hotplug2 for serializing hotplug events on 2.6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hotplug2/files/hotplug2-init.rules')
-rw-r--r--package/hotplug2/files/hotplug2-init.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/hotplug2/files/hotplug2-init.rules b/package/hotplug2/files/hotplug2-init.rules
new file mode 100644
index 000000000..6efd54668
--- /dev/null
+++ b/package/hotplug2/files/hotplug2-init.rules
@@ -0,0 +1,9 @@
+DEVICENAME ~~ (tun|tap[0-9]) {
+ makedev /dev/net/%DEVICENAME% 0644
+ next
+}
+
+DEVPATH is set {
+ makedev /dev/%DEVICENAME% 0644
+}
+