aboutsummaryrefslogtreecommitdiffstats
path: root/target/imagebuilder/files/opkg-generate-config.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-09-12 22:04:09 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-09-12 22:04:09 +0000
commitea5904ff9370a7b735ced24a7c92856c25a5632c (patch)
tree09bd0dc5e19a6589c837f44050c77b9fdaf11bd2 /target/imagebuilder/files/opkg-generate-config.sh
parentd3e206ad96e1ed4491d6408bff4c4aaaad466342 (diff)
downloadupstream-ea5904ff9370a7b735ced24a7c92856c25a5632c.tar.gz
upstream-ea5904ff9370a7b735ced24a7c92856c25a5632c.tar.bz2
upstream-ea5904ff9370a7b735ced24a7c92856c25a5632c.zip
- sync with host opkg changes - get rid of autogenerated opkg.conf - utilize dl/ as package cache, useful for remote downloads
SVN-Revision: 23039
Diffstat (limited to 'target/imagebuilder/files/opkg-generate-config.sh')
-rwxr-xr-xtarget/imagebuilder/files/opkg-generate-config.sh46
1 files changed, 0 insertions, 46 deletions
diff --git a/target/imagebuilder/files/opkg-generate-config.sh b/target/imagebuilder/files/opkg-generate-config.sh
deleted file mode 100755
index b2047a0d45..0000000000
--- a/target/imagebuilder/files/opkg-generate-config.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-TOPDIR="$(pwd)"
-TARGETDIR="${1}"
-
-[ -f "$TOPDIR/scripts/${0##*/}" ] || {
- echo "Please execute within the toplevel directory" >&2
- exit 1
-}
-
-# Try to find package architecture from packages directory
-PKGARCH=
-for pkg in $TOPDIR/packages/*.ipk; do
- if [ -f "$pkg" ]; then
- PKGARCH="${pkg##*/}"
- PKGARCH="${PKGARCH#*_*_}"
- PKGARCH="${PKGARCH%.ipk}"
- [ "$PKGARCH" = all ] || break
- fi
-done
-
-# Try to find package architecture from the target directory
-[ -n "$PKGARCH" ] || {
- PKGARCH="${TARGETDIR##*/root-}"
- [ "$PKGARCH" != "$TARGETDIR" ] || {
- echo "Cannot determine package architecture" >&2
- exit 1
- }
-}
-
-rm -f $TOPDIR/tmp/opkg.conf
-
-[ -f $TOPDIR/repositories.conf ] && \
- $TOPDIR/staging_dir/host/bin/sed \
- -n -e "s/\$A/$PKGARCH/g" -e "/^[[:space:]]*src/p" \
- $TOPDIR/repositories.conf > $TOPDIR/tmp/opkg.conf
-
-cat <<EOT >> $TOPDIR/tmp/opkg.conf
-dest root /
-arch all 100
-arch $PKGARCH 200
-option offline_root $TARGETDIR
-src imagebuilder file:$TOPDIR/packages
-EOT
-
-exit 0