From: Michal Soltys Date: Tue, 10 May 2011 12:36:24 +0000 (+0200) Subject: dracut-functions: remove find_rule() X-Git-Tag: 011~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e43debe671423aa299be01f676ef8f5ca4d2c27;p=thirdparty%2Fdracut.git dracut-functions: remove find_rule() Not used anymore. Signed-off-by: Michal Soltys --- diff --git a/dracut-functions b/dracut-functions index 959c1d309..ae3d26569 100755 --- a/dracut-functions +++ b/dracut-functions @@ -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() {