[imagebuilder] fix arch detection pattern to cope with underscores in board name...
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 8 Sep 2010 05:46:37 +0000 (05:46 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 8 Sep 2010 05:46:37 +0000 (05:46 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22980 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/imagebuilder/files/opkg-generate-config.sh

index a385d9f..d8fb0e4 100755 (executable)
@@ -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
This page took 0.028881 seconds and 4 git commands to generate.