dracut-functions: remove find_rule()

Not used anymore.

Signed-off-by: Michal Soltys <soltys@ziu.info>
master
Michal Soltys 2011-05-10 14:36:24 +02:00 committed by Harald Hoyer
parent 09a19bb1ba
commit 6e43debe67
1 changed files with 0 additions and 9 deletions

View File

@ -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() {