From dd98ec61c9d06256475536855ca970b6dea8fac6 Mon Sep 17 00:00:00 2001 From: jow Date: Wed, 8 Sep 2010 05:47:18 +0000 Subject: [PATCH] [backfire] merge r22980 git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22981 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 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