Lines 20-28
Link Here
|
20 |
if [ $(get_KV) -gt "$(KV_to_int '2.6.14')" ] ; then |
20 |
if [ $(get_KV) -gt "$(KV_to_int '2.6.14')" ] ; then |
21 |
ebegin "Populating /dev with existing devices through uevents" |
21 |
ebegin "Populating /dev with existing devices through uevents" |
22 |
local opts= |
22 |
local opts= |
23 |
[[ ${RC_COLDPLUG} != "yes" && $(udev_version) -ge "96" ]] && \ |
23 |
if [[ $(udev_version) -ge "99" ]] ; then |
24 |
opts="--attr-match=dev" |
24 |
[[ ${RC_COLDPLUG:-yes} != "yes" ]] && \ |
25 |
/sbin/udevtrigger ${opts} |
25 |
opts="--attr-match=dev" |
|
|
26 |
local nomatch |
27 |
set -f |
28 |
for nomatch in ${RC_UDEVTRIGGER_ATTR_EXCLUDE} ; do |
29 |
opts="${opts} --attr-nomatch=${nomatch}" |
30 |
done |
31 |
for nomatch in ${RC_UDEVTRIGGER_SUBSYSTEM_EXCLUDE} ; do |
32 |
opts="${opts} --subsystem-nomatch=${nomatch}" |
33 |
done |
34 |
set +f |
35 |
fi |
36 |
/sbin/udevtrigger ${opts} |
26 |
eend $? |
37 |
eend $? |
27 |
else |
38 |
else |
28 |
ebegin "Populating /dev with existing devices with udevstart" |
39 |
ebegin "Populating /dev with existing devices with udevstart" |