From 7cc1d36ac23d851255a6428f9822eda464eaa1d5 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 5 Jan 2025 12:04:15 -0700 Subject: [PATCH] deliver script to force our dtb to be the one used --- debian/quantimotor.install | 1 + z99-quantimotor | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 z99-quantimotor diff --git a/debian/quantimotor.install b/debian/quantimotor.install index 06cb5cc..c1c1c8f 100644 --- a/debian/quantimotor.install +++ b/debian/quantimotor.install @@ -1 +1,2 @@ bcm2837-rpi-zero-2-w.dtb usr/share/quantimotor +z99-quantimotor etc/kernel/postinst.d diff --git a/z99-quantimotor b/z99-quantimotor new file mode 100755 index 0000000..e650cb9 --- /dev/null +++ b/z99-quantimotor @@ -0,0 +1,23 @@ +#!/bin/sh + +# force QuantiMotor's dtb to be /boot/firmware/bcm2837-rpi-zero-2-w.dtb + +set -e + +# Play nice when run under debconf. +exec &2 + +eval set -- "$DEB_MAINT_PARAMS" + +# Only run on configure and remove to avoid unnecessary work. +case "$1" in + configure|remove) + ;; + *) + exit 0 + ;; +esac + +cp /usr/share/quantimotor/bcm2837-rpi-zero-2-w.dtb \ + /boot/firmware/bcm2837-rpi-zero-2-w.dtb + -- 2.47.2