Revert "compat-wireless: fix update-initramfs script"
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 8 Nov 2010 23:54:31 +0000 (15:54 -0800)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 9 Nov 2010 18:58:25 +0000 (10:58 -0800)
This doesn't seem to work well:

make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-22-generic'
Updating Ubuntu's initramfs for 2.6.31-22-generic under /boot/ ...
update-initramfs: Generating /boot/initrd.img-2.6.37-rc1-wl+

This reverts commit 6ee0397f8e6372ca4cd637525273bc7c2fa3bd31.

scripts/update-initramfs

index 1cdbebd32ce4f2bed644ff6f0bf4eb1ded7661d2..412d885f442b7560e5c245dcfefa4d7b6bfaca20 100755 (executable)
 
 LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
 
-KLIB=/lib/modules/$(uname -r)/build
+KLIB=/lib/modules/2.6.31-wl/build
 ver=$(echo $KLIB | awk -F "/lib/modules/" '{print $2}' | awk -F"/" '{print $1}')
 dir=/boot/
 
 case $LSB_RED_ID in
 "Ubuntu")
        echo "Updating Ubuntu's initramfs for $ver under $dir ..."
-#      mkinitramfs -o $dir/initrd.img-$ver $ver
-       update-initramfs -u
-       echo "update complete"
-#      echo "Will now run update-grub to ensure grub will find the new initramfs ..."
-#      update-grub
+       mkinitramfs -o $dir/initrd.img-$ver $ver
+       echo "Will now run update-grub to ensure grub will find the new initramfs ..."
+       update-grub
        ;;
 *)
        echo "Warning:"