From: Luis R. Rodriguez Date: Mon, 8 Nov 2010 23:54:31 +0000 (-0800) Subject: Revert "compat-wireless: fix update-initramfs script" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fac564e9a6b9565f0e45cb088b0fed36f4d67055;p=openwrt%2Fstaging%2Fblogic.git Revert "compat-wireless: fix update-initramfs script" 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. --- diff --git a/scripts/update-initramfs b/scripts/update-initramfs index 1cdbebd32ce4..412d885f442b 100755 --- a/scripts/update-initramfs +++ b/scripts/update-initramfs @@ -10,18 +10,16 @@ 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:"