linux.inc: add a symlink from /boot/devicetree to /boot/devicetree-${KERNEL-VERSION}
authorJeremy Laine <jeremy.laine@m4x.org>
Mon, 9 Jun 2008 15:17:24 +0000 (15:17 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Mon, 9 Jun 2008 15:17:24 +0000 (15:17 +0000)
packages/linux/linux.inc

index 679f73a..a6bffe7 100644 (file)
@@ -142,3 +142,12 @@ do_devicetree_image() {
 }
 
 addtask devicetree_image after do_deploy before do_package
+
+pkg_postinst_kernel-devicetree () {
+       cd /${KERNEL_IMAGEDEST}; update-alternatives --install /${KERNEL_IMAGEDEST}/devicetree devicetree devicetree-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true
+}
+
+pkg_postrm_kernel-devicetree () {
+       cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true
+}
+