omap3-pandora-kernel: try fixing some damage
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 28 Nov 2014 02:12:10 +0000 (04:12 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 28 Nov 2014 02:12:10 +0000 (04:12 +0200)
hacks, hacks, and more hacks..

recipes/linux/linux.inc

index 9931bdb..29fc408 100755 (executable)
@@ -244,6 +244,10 @@ addtask devicetree_image after do_install before do_package do_deploy
 #pkg_postinst_kernel-devicetree () {
 #      cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/devicetree devicetree devicetree-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
 #}
+pkg_postinst_kernel-devicetree () {
+       # reverse damage from older uninstall script..
+       if [ -f /boot/uImage-3 -a ! -h /boot/uImage ]; then cd /boot; sudo ln -s uImage-3 uImage; fi
+}
 
 #pkg_postrm_kernel-devicetree () {
 #      cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true