Skip to content

Commit

Permalink
firmware: include firmware-version in banner
Browse files Browse the repository at this point in the history
  • Loading branch information
blocktrron committed Jul 26, 2024
1 parent c2c487a commit 4ce75a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openwrt/oob-packages/ffda-oob-firmware/files/uci-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4ce75a3

Please sign in to comment.