dracut-functions: remove find_rule()
Not used anymore. Signed-off-by: Michal Soltys <soltys@ziu.info>master
parent
09a19bb1ba
commit
6e43debe67
|
@ -396,15 +396,6 @@ inst_symlink() {
|
|||
ln -sfn "$realsrc" "$target"
|
||||
}
|
||||
|
||||
# find a udev rule in the usual places.
|
||||
find_rule() {
|
||||
[[ -f $1 ]] && { echo "$1"; return 0; }
|
||||
for r in . /lib/udev/rules.d /etc/udev/rules.d $dracutbasedir/rules.d; do
|
||||
[[ -f $r/$1 ]] && { echo "$r/$1"; return 0; }
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
# udev rules always get installed in the same place, so
|
||||
# create a function to install them to make life simpler.
|
||||
inst_rules() {
|
||||
|
|
Loading…
Reference in New Issue