root/scripts/ubnt-fix-image.script.disable @ ef73945d
d32bfde2 | p4u | #!/bin/bash
|
|
# This scripts changes the header string which is
|
|||
# read by the AirOs web interface to determine if
|
|||
# the firmware is valid or not.
|
|||
UBNT_TARGETS="nsm5 rocket nsm2 bullet"
|
|||
[ "$1" != "PRE_BUILD" ] && exit 0
|
|||
88cb0f51 | p4u | shift
|
|
ac9c8127 | p4u | TBUILD="$1"
|
|
d32bfde2 | p4u | shift
|
|
TARGET="$1"
|
|||
88cb0f51 | p4u | [ -z "$TARGET" ] || [ -z "$TBUILD" ] || [ ! -d "build/$TBUILD" ] && exit 1
|
|
d32bfde2 | p4u | [[ "$UBNT_TARGETS" =~ "$TARGET" ]] || exit 2
|
|
88cb0f51 | p4u | FILE="build/$TBUILD/target/linux/ar71xx/image/Makefile"
|
|
d32bfde2 | p4u | sed -i -e s/"XM,ar7240)"/"XM,ar7240.v5.3.6)"/g $FILE
|