From 4ce75a359ad113c7d061eb4109c88d05eef86833 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 27 Jul 2024 01:45:46 +0200 Subject: [PATCH] firmware: include firmware-version in banner --- openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh b/openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh index 0f3b90b..d7b8dc9 100644 --- a/openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh +++ b/openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh @@ -34,6 +34,9 @@ uci set system.@system[0].hostname="ffda-oob-$LABEL_MAC" # Copy banner cp /lib/ffda-oob-firmware/banner.txt /etc/banner +# Replace %VERSION% in banner with current version +sed -i "s/%VERSION%/$(cat /lib/ffda-oob-firmware/firmware-version)/" /etc/banner + # Mark device as configured touch /lib/ffda-oob-firmware/configured