projects
/
10.03
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[backfire] merge r22980
[10.03/openwrt.git]
/
target
/
imagebuilder
/
files
/
opkg-generate-config.sh
diff --git
a/target/imagebuilder/files/opkg-generate-config.sh
b/target/imagebuilder/files/opkg-generate-config.sh
index
a385d9f
..
d8fb0e4
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