X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3abdc13b68b44631def95b57d2c978aad201d945..04c940093439b3df9e97c890153896841618c6b4:/package/base-files/files/etc/hotplug2-common.rules diff --git a/package/base-files/files/etc/hotplug2-common.rules b/package/base-files/files/etc/hotplug2-common.rules index 6bc53dffe..96a473116 100644 --- a/package/base-files/files/etc/hotplug2-common.rules +++ b/package/base-files/files/etc/hotplug2-common.rules @@ -1,4 +1,10 @@ +# uncomment me to log hotplug events +# DEVPATH is set { +# nothrottle +# exec logger -s -t hotplug -p daemon.info "name=%DEVICENAME%, path=%DEVPATH%" +# } + DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio|hvc) { nothrottle makedev /dev/%DEVICENAME% 0666 @@ -35,8 +41,8 @@ DEVPATH is set, SUBSYSTEM ~~ (input) { } DEVICENAME == device-mapper { - nothrottle - makedev /dev/mapper/control 0600 + nothrottle + makedev /dev/mapper/control 0600 } @@ -45,8 +51,8 @@ DEVPATH is set { makedev /dev/%DEVICENAME% 0644 } -FIRMWARE is set { +FIRMWARE is set, ACTION == add { nothrottle - exec /sbin/hotplug-call firmware + load-firmware /lib/firmware next }