On Mon, 2014-11-03 at 19:10 +0100, Cyril Brulebois wrote: > Ian Campbell <i...@hellion.org.uk> (2014-11-03): > > On Sun, 2014-11-02 at 12:08 +0100, Uwe Kleine-König wrote: > > > Package: flash-kernel > > > Version: 3.28 > > > Severity: wishlist > > > > > > Hello, > > > > > > I want to use flash-kernel on a machine that uses a device tree blob that > > > isn't > > > included in the kernel package. So flash-kernel's assumption to find > > > /usr/lib/linux-image-$kvers/$dtb_id is wrong. > > > > > > Maybe something like: > > > > > > # if dtb_name starts with / assume it's a stand alone file. Otherwise > > > # pick the one shipped by the linux image. > > > if expr "$dtb_name" : "/" >/dev/null; then > > > dtb="$dtb_name" > > > else > > > dtb="/usr/lib/linux-image-$kvers/$dtb_name" > > > fi > > > > > > would work? > > > > expr isn't a builtin, right? So we don't need to worry about dash vs > > bash for it and whether the ":" operator is implemented. > > Just use case and match on /*?
Indeed, that would be best I think. Ian. -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1415094900.11486.4.ca...@hellion.org.uk