Revisió d32bfde2
Afegit per Pau Escrich fa aproximadament 12 anys
scripts/ubnt-fix-image.script | ||
---|---|---|
#!/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
|
També disponible a: Unified diff
Script to modify Ubiquiti target image and be able to use the AirOS web interface to upload the firmware