From 2d6b53deec9dab294cb8e0aafe81ecc7aba5ba4e Mon Sep 17 00:00:00 2001 From: nbd Date: Sat, 5 May 2007 18:33:18 +0000 Subject: use hotplug2 for serializing hotplug events on 2.6 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7097 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/hotplug2/files/hotplug2.rules | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/hotplug2/files/hotplug2.rules (limited to 'package/hotplug2/files/hotplug2.rules') diff --git a/package/hotplug2/files/hotplug2.rules b/package/hotplug2/files/hotplug2.rules new file mode 100644 index 000000000..ebd96fa33 --- /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%; +} -- cgit v1.2.3