Projecte

General

Perfil

Baixar (490 Bytes) Estadístiques
| Branca: | Etiqueta: | Revisió:
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
TBUILD="$2"

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