From 4e4050b160c20946d07789a6f6c71b6b2c4c28b3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau 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-init.rules | 9 +++++++++ package/hotplug2/files/hotplug2.rules | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 package/hotplug2/files/hotplug2-init.rules create mode 100644 package/hotplug2/files/hotplug2.rules (limited to 'package/hotplug2/files') 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%; +} -- cgit v1.2.3