From: Bdale Garbee Date: Sun, 5 Jan 2025 19:04:15 +0000 (-0700) Subject: deliver script to force our dtb to be the one used X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7cc1d36ac23d851255a6428f9822eda464eaa1d5;p=fw%2Fquantimotor deliver script to force our dtb to be the one used --- 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 +