dracut-functions: remove find_rule()
authorMichal Soltys <soltys@ziu.info>
Tue, 10 May 2011 12:36:24 +0000 (14:36 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 May 2011 12:46:06 +0000 (14:46 +0200)
Not used anymore.

Signed-off-by: Michal Soltys <soltys@ziu.info>
dracut-functions

index 959c1d3..ae3d265 100755 (executable)
@@ -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() {