summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-06-09 15:17:24 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-06-09 15:17:24 +0000
commitd9d3069c3604f8697266ca7f699273b8ab6869ea (patch)
tree48a0b67a52eed902ae5fb20953282259db83769d /packages
parent2ea812f90d27be025eeb2e2f053fdb5a3a787034 (diff)
linux.inc: add a symlink from /boot/devicetree to /boot/devicetree-${KERNEL-VERSION}
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux.inc9
1 files changed, 9 insertions, 0 deletions
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
+}
+