let find_rule find absolute path rules
parent
f6f74096f6
commit
b649f1c21b
|
@ -145,6 +145,7 @@ inst_symlink() {
|
|||
|
||||
# find a rule in the usual places.
|
||||
find_rule() {
|
||||
[[ -f $1 ]] && { echo "$1"; return 0; }
|
||||
for r in . /lib/udev/rules.d /etc/udev/rules.d $dsrc/rules.d; do
|
||||
[[ -f $r/$1 ]] && { echo "$r/$1"; return 0; }
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue