From: Jo-Philipp Wich Date: Wed, 8 Sep 2010 05:46:37 +0000 (+0000) Subject: fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips" X-Git-Tag: reboot~18947 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a2ce99fe517f0ac47112f8359af5a72eff442ff;p=openwrt%2Fopenwrt.git fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips" SVN-Revision: 22980 --- 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