summaryrefslogtreecommitdiffhomepage
path: root/contrib/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-22 17:56:48 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-22 17:56:48 +0000
commit1c8db37e8b93855530102ded098daa95076f981b (patch)
tree237c6009fd3ed60dd300862ab95e9d4a45a4abad /contrib/package
parent2903acf1f2b2a1dd7dbca14cd5b0ee9b2cf7be5e (diff)
contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead
Diffstat (limited to 'contrib/package')
-rw-r--r--contrib/package/remote-update/Makefile2
-rwxr-xr-xcontrib/package/remote-update/files/usr/sbin/remote-update7
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/package/remote-update/Makefile b/contrib/package/remote-update/Makefile
index 40cee4c33..dd73d2f55 100644
--- a/contrib/package/remote-update/Makefile
+++ b/contrib/package/remote-update/Makefile
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=remote-update
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
diff --git a/contrib/package/remote-update/files/usr/sbin/remote-update b/contrib/package/remote-update/files/usr/sbin/remote-update
index bffc449d0..e9a0a98c1 100755
--- a/contrib/package/remote-update/files/usr/sbin/remote-update
+++ b/contrib/package/remote-update/files/usr/sbin/remote-update
@@ -8,8 +8,11 @@ local NL='
find_architecture()
{
- opkg list_installed 'base-files-*' | \
- sed -ne 's/base-files-\([^ ]\+\).*/\1/p'
+ local ifs="$IFS"; IFS="-"
+ set -- $(opkg list_installed kernel)
+ IFS="$ifs"
+
+ echo "$3"
}
find_image()