add hotplug2 v1.0
[openwrt/openwrt.git] / package / hotplug2 / files / hotplug2.rules
diff --git a/package/hotplug2/files/hotplug2.rules b/package/hotplug2/files/hotplug2.rules
new file mode 100644 (file)
index 0000000..8ad8103
--- /dev/null
@@ -0,0 +1,10 @@
+$include /etc/hotplug2-common.rules
+
+SUBSYSTEM ~~ (net|button|usb|platform|ieee1394|block) {
+       exec /sbin/hotplug-call %SUBSYSTEM%
+}
+
+DEVICENAME ~~ (watchdog) {
+       exec /sbin/watchdog -t 5 /dev/watchdog
+       next
+}