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.
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:"