refactor hotplug2 rules, make sure that the default button rule is only used during...
[openwrt-10.03/.git] / package / hotplug2 / files / hotplug2.rules
index f8035d38411385c4ad6b15e373217799ed6e17a0..1f3a444151b4fedf8ebfb36a2b5c421cc0afcb66 100644 (file)
@@ -1,22 +1,10 @@
-DEVICENAME ~~ (tun|tap[0-9]) {
-       makedev /dev/net/%DEVICENAME% 0644
-       next
-}
+$include /etc/hotplug2-common.rules
 
-DEVICENAME ~~ (controlC[0-9]|pcmC0D0*) {
-        makedev /dev/snd/%DEVICENAME% 0644
-        next
-}
-
-DEVPATH is set {
-       makedev /dev/%DEVICENAME% 0644
+SUBSYSTEM ~~ (net|button|usb) {
+       exec /sbin/hotplug-call %SUBSYSTEM%;
 }
 
-FIRMWARE is set {
-       exec /sbin/hotplug-call firmware;
+DEVICENAME ~~ (watchdog) {
+       exec /sbin/watchdog -t 5 /dev/watchdog;
        next
 }
-
-SUBSYSTEM ~~ (net|button|usb) {
-       exec /sbin/hotplug-call %SUBSYSTEM%;
-}