From d9d3069c3604f8697266ca7f699273b8ab6869ea Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Mon, 9 Jun 2008 15:17:24 +0000 Subject: linux.inc: add a symlink from /boot/devicetree to /boot/devicetree-${KERNEL-VERSION} --- packages/linux/linux.inc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'packages') diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc index 679f73a7f4..a6bffe728a 100644 --- a/packages/linux/linux.inc +++ b/packages/linux/linux.inc @@ -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 +} + -- cgit v1.2.3