Some versions of udevd do not look for rules in /lib/udev/rules.d
For those versions, install rules to /etc/udev/rules.d instead.master
parent
71388098b6
commit
496d08bb19
|
|
@ -140,9 +140,11 @@ find_rule() {
|
|||
# udev rules always get installed in the same place, so
|
||||
# create a function to install them to make life simpler.
|
||||
inst_rules() {
|
||||
local target="/lib/udev/rules.d"
|
||||
[[ -d $target ]] || target="/etc/udev/rules.d"
|
||||
for rule in "$@"; do
|
||||
rule=$(find_rule $rule) && \
|
||||
inst_simple "$rule" "/lib/udev/rules.d/${rule##*/}"
|
||||
inst_simple "$rule" "$target/${rule##*/}"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue