]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
find remove
authoringlod <inglod@pld-linux.org>
Tue, 16 Jan 2001 14:08:13 +0000 (14:08 +0000)
committeringlod <inglod@pld-linux.org>
Tue, 16 Jan 2001 14:08:13 +0000 (14:08 +0000)
svn-id: @1175

geninitrd

index 1fcdb79acebc8d6a66278a6f44cd86ebf82a3d20..14c427f800b0034132aed9d2ec2fb7a1fa55ed72 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -61,6 +61,18 @@ usage () {
     exit 1
 }
 
+
+my_find() {
+       for name in `ls`
+       do
+          if [ -d $name ]; then
+               (cd $name;my_find $1/$name $2)
+          else
+               [ -f $name -a "$name" = "$2" ] && echo $1/$name
+          fi
+       done
+}
+
 findmodule() {
     skiperrors=""
     modName=$1
@@ -78,7 +90,7 @@ findmodule() {
        findmodule socal
     fi
 
-    fmPath="`(cd /lib/modules/$kernel; find -type f -name "$modName.o")`"
+    fmPath="`(cd /lib/modules/$kernel; my_find . "$modName.o")`"
 
     if [ ! -f "/lib/modules/$kernel/$fmPath" ]; then
        if [ -n "$skiperrors" ]; then
This page took 0.361672 seconds and 4 git commands to generate.