X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/accff9a4a72195bc2be35d0edfcd1f4f51954971..572cb3cc9e32a39a457b8fd9bbb262f0e0470791:/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 a7aba35a9..5221457a5 100644 --- a/package/base-files/files/etc/hotplug2-common.rules +++ b/package/base-files/files/etc/hotplug2-common.rules @@ -1,5 +1,11 @@ -DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio) { +# 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 next @@ -8,7 +14,6 @@ DEVICENAME ~~ (null|full|ptmx|tty|zero|gpio) { DEVICENAME ~~ (tun|tap[0-9]) { nothrottle makedev /dev/net/%DEVICENAME% 0644 - next } DEVICENAME ~~ (ppp) { @@ -35,8 +40,8 @@ DEVPATH is set, SUBSYSTEM ~~ (input) { } DEVICENAME == device-mapper { - nothrottle - makedev /dev/mapper/control 0600 + nothrottle + makedev /dev/mapper/control 0600 } @@ -45,8 +50,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 }