aboutsummaryrefslogtreecommitdiffstats
path: root/target
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 /target
parent699876fa6b30be6a3fa11db92bce249d090aeb85 (diff)
downloadupstream-7a2ce99fe517f0ac47112f8359af5a72eff442ff.tar.gz
upstream-7a2ce99fe517f0ac47112f8359af5a72eff442ff.tar.bz2
upstream-7a2ce99fe517f0ac47112f8359af5a72eff442ff.zip
fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"
SVN-Revision: 22980
Diffstat (limited to 'target')
-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 a385d9fa9b..d8fb0e4065 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