projects
/
openwrt
/
staging
/
dangole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
699876f
)
fix arch detection pattern to cope with underscores in board name, e.g. "adm5120_mips"
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Sep 2010 05:46:37 +0000
(
05:46
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 8 Sep 2010 05:46:37 +0000
(
05:46
+0000)
SVN-Revision: 22980
target/imagebuilder/files/opkg-generate-config.sh
patch
|
blob
|
history
diff --git
a/target/imagebuilder/files/opkg-generate-config.sh
b/target/imagebuilder/files/opkg-generate-config.sh
index a385d9fa9b93b988c7407622aa444a36b8435848..d8fb0e40653b2598914ded34e9e9c005853f8131 100755
(executable)
--- 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