Browse Source

clifford, fake:


			
			
				rocklinux
			
			
		
Clifford Wolf 19 years ago
parent
commit
5632323f1c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      package/base/linux/mkinitrd.sh

+ 2
- 1
package/base/linux/mkinitrd.sh

@ -2,6 +2,7 @@
kernel=`uname -r`
tmpdir=`mktemp -d`
modprobeopt=`echo $kernel | sed '/2.4/ { s,.*,-n,; q; }; s,.*,--show-depends,'`
empty=0
if [ "$1" = "empty" ]; then
@ -32,7 +33,7 @@ echo "Creating /boot/initrd-${kernel}.img ..."
if [ "$empty" = 0 ]; then
grep '^modprobe ' /etc/conf/kernel |
grep -v 'no-initrd' | sed 's,[ ]#.*,,' |
while read a b; do $a -n -v $b 2> /dev/null; done |
while read a b; do $a $modprobeopt -v $b 2> /dev/null; done |
while read a b c; do
# ouch - this is pretty ugly....
b="${b//`uname -r`/$kernel}"

Loading…
Cancel
Save