root/scripts/ubnt-fix-image.script @ 9f3a2bdf
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
|
|||
shift
|
|||
TARGET="$1"
|
|||
[ -z "$TARGET" ] || [ ! -d "build/nsm5" ] && exit 1
|
|||
[[ "$UBNT_TARGETS" =~ "$TARGET" ]] || exit 2
|
|||
FILE="build/nsm5/target/linux/ar71xx/image/Makefile"
|
|||
sed -i -e s/"XM,ar7240)"/"XM,ar7240.v5.3.6)"/g $FILE
|