summaryrefslogtreecommitdiff
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
commitca7a8156029b94f9fe0e9d78a2502c0b0db98567 (patch)
treedbb58fde5a662952714b8c7221c94e9ea1c7e445 /package/hotplug2/files
parent341b6afd554369bcd700dd505210955d521e9ee9 (diff)
downloadmtk-20170518-ca7a8156029b94f9fe0e9d78a2502c0b0db98567.zip
mtk-20170518-ca7a8156029b94f9fe0e9d78a2502c0b0db98567.tar.gz
mtk-20170518-ca7a8156029b94f9fe0e9d78a2502c0b0db98567.tar.bz2
use hotplug2 for serializing hotplug events on 2.6
SVN-Revision: 7097
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 0000000..6efd546
--- /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 0000000..ebd96fa
--- /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%;
+}