From 7a2ce99fe517f0ac47112f8359af5a72eff442ff Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 8 Sep 2010 05:46:37 +0000 Subject: fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips" SVN-Revision: 22980 --- target/imagebuilder/files/opkg-generate-config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.1