diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-08 05:46:37 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-09-08 05:46:37 +0000 |
commit | cbcb7e2471677594c9a54d64a4f73003c75d8245 (patch) | |
tree | de557496c898c8cd17724739e4ef16beac7ccdd6 | |
parent | 67f09fa245578c136ac34804dad41f1e1d694e48 (diff) |
[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
-rwxr-xr-x | target/imagebuilder/files/opkg-generate-config.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/imagebuilder/files/opkg-generate-config.sh b/target/imagebuilder/files/opkg-generate-config.sh index a385d9fa9..d8fb0e406 100755 --- a/target/imagebuilder/files/opkg-generate-config.sh +++ b/target/imagebuilder/files/opkg-generate-config.sh @@ -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 |