aboutsummaryrefslogtreecommitdiffstats
path: root/package/hotplug2/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-05 18:33:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-05 18:33:18 +0000
commit4e4050b160c20946d07789a6f6c71b6b2c4c28b3 (patch)
treee281bcd95cb9e165ddac1b4ae8f002f20e6acff9 /package/hotplug2/files
parent6232c138af89a6f6b28350ec1fbee39b0b5747a4 (diff)
downloadmaster-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.tar.gz
master-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.tar.bz2
master-187ad058-4e4050b160c20946d07789a6f6c71b6b2c4c28b3.zip
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')
-rw-r--r--package/hotplug2/files/hotplug2-init.rules9
-rw-r--r--package/hotplug2/files/hotplug2.rules12
2 files changed, 21 insertions, 0 deletions
diff --git a/package/hotplug2/files/hotplug2-init.rules b/package/hotplug2/files/hotplug2-init.rules
new file mode 100644
index 0000000000..6efd546689
--- /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
+}
+
diff --git a/package/hotplug2/files/hotplug2.rules b/package/hotplug2/files/hotplug2.rules
new file mode 100644
index 0000000000..ebd96fa33d
--- /dev/null
+++ b/package/hotplug2/files/hotplug2.rules
@@ -0,0 +1,12 @@
+DEVICENAME ~~ (tun|tap[0-9]) {
+ makedev /dev/net/%DEVICENAME% 0644
+ next
+}
+
+DEVPATH is set {
+ makedev /dev/%DEVICENAME% 0644
+}
+
+SUBSYSTEM ~~ (net|button) {
+ exec /sbin/hotplug-call %SUBSYSTEM%;
+}