mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 01:07:56 +02:00
[imagebuilder] fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22980 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
67f09fa245
commit
cbcb7e2471
@ -12,7 +12,8 @@ TARGETDIR="${1}"
|
|||||||
PKGARCH=
|
PKGARCH=
|
||||||
for pkg in $TOPDIR/packages/*.ipk; do
|
for pkg in $TOPDIR/packages/*.ipk; do
|
||||||
if [ -f "$pkg" ]; then
|
if [ -f "$pkg" ]; then
|
||||||
PKGARCH="${pkg##*_}"
|
PKGARCH="${pkg##*/}"
|
||||||
|
PKGARCH="${PKGARCH#*_*_}"
|
||||||
PKGARCH="${PKGARCH%.ipk}"
|
PKGARCH="${PKGARCH%.ipk}"
|
||||||
[ "$PKGARCH" = all ] || break
|
[ "$PKGARCH" = all ] || break
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user