mirror of
https://github.com/openwrt/openwrt.git
synced 2025-12-28 10:00:02 +04:00
fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"
SVN-Revision: 22980
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user