Skip to content

Commit

Permalink
Adjust prepare-downgrade for firmware version > 7
Browse files Browse the repository at this point in the history
 - refs #1091
  • Loading branch information
fda77 committed Jan 6, 2025
1 parent 6fec088 commit 3dc1205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make/pkgs/mod/files/root/usr/bin/prepare-downgrade
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ -e /var/tmp/version ]; then
echo 'already done.'
else
MAJOR="$(/etc/version -v | sed 's/^[0-9]*\.//;s/\.[0-9]*$//')"
[ "$MAJOR" -gt 6 ] 2>/dev/null && FAKEVER="06.90" || FAKEVER="01.01"
[ "$MAJOR" -gt 6 ] 2>/dev/null && FAKEVER="0$(( $MAJOR - 1 )).90" || FAKEVER="01.01"
sed "s/\({CONFIG_VERSION_MAJOR}\)[^\"]*\(.*\)/\1.$FAKEVER\2/" /etc/version > /var/tmp/version
chmod +x /var/tmp/version
mount -o bind /var/tmp/version /etc/version
Expand Down

0 comments on commit 3dc1205

Please sign in to comment.