fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"

SVN-Revision: 22980
v19.07.3_mercusys_ac12_duma
Jo-Philipp Wich 14 years ago
parent 699876fa6b
commit 7a2ce99fe5

@ -12,7 +12,8 @@ TARGETDIR="${1}"
PKGARCH=
for pkg in $TOPDIR/packages/*.ipk; do
if [ -f "$pkg" ]; then
PKGARCH="${pkg##*_}"
PKGARCH="${pkg##*/}"
PKGARCH="${PKGARCH#*_*_}"
PKGARCH="${PKGARCH%.ipk}"
[ "$PKGARCH" = all ] || break
fi

Loading…
Cancel
Save