Magellan Linux

Diff of /trunk/mkinitrd-magellan/mkinitrd.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 844 by niro, Wed Jun 11 22:11:40 2008 UTC revision 845 by niro, Mon May 4 18:51:02 2009 UTC
# Line 93  moduledep() Line 93  moduledep()
93   deps=$(awk 'BEGIN { searched=ARGV[2]; ARGV[2]=""; rc=1 } \   deps=$(awk 'BEGIN { searched=ARGV[2]; ARGV[2]=""; rc=1 } \
94   function modname(filename) { match(filename, /\/([^\/]+)\.k?o:?$/, ret); return ret[1] } \   function modname(filename) { match(filename, /\/([^\/]+)\.k?o:?$/, ret); return ret[1] } \
95   function show() { if (orig == searched) { print dep; orig=""; rc=0; exit } } \   function show() { if (orig == searched) { print dep; orig=""; rc=0; exit } } \
96   /^\/lib/ { show(); \   /^.*kernel/ { show(); \
97   orig=modname($1); dep=""; \   orig=modname($1); dep=""; \
98   if ($2) { for (i = 2; i <= NF; i++) { dep=sprintf("%s %s", dep, modname($i)); } } } \   if ($2) { for (i = 2; i <= NF; i++) { dep=sprintf("%s %s", dep, modname($i)); } } } \
99   /^ / { dep=sprintf("%s %s", dep, modname($1));  } \   /^ / { dep=sprintf("%s %s", dep, modname($1));  } \

Legend:
Removed from v.844  
changed lines
  Added in v.845