]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
let find_rule find absolute path rules
authorHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 12:08:39 +0000 (14:08 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 May 2009 12:08:39 +0000 (14:08 +0200)
dracut-functions

index b281fef656df9f0b9d2b6b988984cd038034241c..179ad1a1d06c79f6674a03e87659b67cb15503d1 100755 (executable)
@@ -145,6 +145,7 @@ inst_symlink() {
 
 # find a rule in the usual places.
 find_rule() {
+    [[ -f $1 ]] && { echo "$1"; return 0; }
     for r in . /lib/udev/rules.d /etc/udev/rules.d $dsrc/rules.d; do
        [[ -f $r/$1 ]] && { echo "$r/$1"; return 0; }
     done