Magellan Linux

Diff of /tags/mkinitrd-6_3_3/livecd/mkinitrd-livecd.in

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

revision 664 by niro, Mon Jan 14 19:35:02 2008 UTC revision 845 by niro, Mon May 4 18:51:02 2009 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/mkinitrd-magellan/livecd/mkinitrd-livecd.in,v 1.2 2008-01-14 19:35:02 niro Exp $  # $Id$
3    
4  # mkinitrd-livecd  # mkinitrd-livecd
5  #  #
# Line 96  moduledep() Line 96  moduledep()
96   deps=$(awk 'BEGIN { searched=ARGV[2]; ARGV[2]=""; rc=1 } \   deps=$(awk 'BEGIN { searched=ARGV[2]; ARGV[2]=""; rc=1 } \
97   function modname(filename) { match(filename, /\/([^\/]+)\.k?o:?$/, ret); return ret[1] } \   function modname(filename) { match(filename, /\/([^\/]+)\.k?o:?$/, ret); return ret[1] } \
98   function show() { if (orig == searched) { print dep; orig=""; rc=0; exit } } \   function show() { if (orig == searched) { print dep; orig=""; rc=0; exit } } \
99   /^\/lib/ { show(); \   /^.*kernel/ { show(); \
100   orig=modname($1); dep=""; \   orig=modname($1); dep=""; \
101   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)); } } } \
102   /^ / { dep=sprintf("%s %s", dep, modname($1));  } \   /^ / { dep=sprintf("%s %s", dep, modname($1));  } \
# Line 331  install -m0755 $(which run-init.mkinitrd Line 331  install -m0755 $(which run-init.mkinitrd
331  echo "$(which insmod.static)"  echo "$(which insmod.static)"
332  install -m0755 $(which insmod.static) ${DEST}/sbin/insmod || die  install -m0755 $(which insmod.static) ${DEST}/sbin/insmod || die
333    
334    # install v86d for uvesafb support if installed
335    if which v86d &> /dev/null
336    then
337     echo "$(which insmod.static)"
338     install -m0755 $(which v86d) ${DEST}/sbin/v86d || die
339    fi
340    
341  # create some needed device nodes  # create some needed device nodes
342  install -o root -g root -m0754 ${MAKEDEV} ${DEST}/dev/MAKEDEV || die  install -o root -g root -m0754 ${MAKEDEV} ${DEST}/dev/MAKEDEV || die
343  ( cd ${DEST}/dev; ./MAKEDEV -v generic-nopty)  ( cd ${DEST}/dev; ./MAKEDEV -v generic-nopty)

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