[PATCH 2/2] dracut-functions: remove find_rule()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not used anymore.

Signed-off-by: Michal Soltys <soltys@xxxxxxxx>
---
 dracut-functions |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/dracut-functions b/dracut-functions
index 959c1d3..ae3d265 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() {
-- 
1.7.2.1

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux