X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2d6b53deec9dab294cb8e0aafe81ecc7aba5ba4e..6415bc7abd7037166c9fb75a9b5f91542c2f5566:/package/hotplug2/files/hotplug2.rules diff --git a/package/hotplug2/files/hotplug2.rules b/package/hotplug2/files/hotplug2.rules index ebd96fa33..b88ea5669 100644 --- a/package/hotplug2/files/hotplug2.rules +++ b/package/hotplug2/files/hotplug2.rules @@ -3,10 +3,20 @@ DEVICENAME ~~ (tun|tap[0-9]) { next } +DEVICENAME ~~ (controlC[0-9]|pcmC0D0*) { + makedev /dev/snd/%DEVICENAME% 0644 + next +} + DEVPATH is set { makedev /dev/%DEVICENAME% 0644 } +FIRMWARE is set { + exec /sbin/hotplug-call firmware; + next +} + SUBSYSTEM ~~ (net|button) { exec /sbin/hotplug-call %SUBSYSTEM%; }