summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-08 05:46:37 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-08 05:46:37 +0000
commit7a2ce99fe517f0ac47112f8359af5a72eff442ff (patch)
tree5f7e4c8c6aa6be6cc7fa0fa0a392c95917e657bc
parent699876fa6b30be6a3fa11db92bce249d090aeb85 (diff)
downloadmtk-20170518-7a2ce99fe517f0ac47112f8359af5a72eff442ff.zip
mtk-20170518-7a2ce99fe517f0ac47112f8359af5a72eff442ff.tar.gz
mtk-20170518-7a2ce99fe517f0ac47112f8359af5a72eff442ff.tar.bz2
fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"
SVN-Revision: 22980
-rwxr-xr-xtarget/imagebuilder/files/opkg-generate-config.sh3
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 a385d9f..d8fb0e4 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