From 1c8db37e8b93855530102ded098daa95076f981b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 22 Aug 2009 17:56:48 +0000 Subject: [PATCH] contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead --- contrib/package/remote-update/Makefile | 2 +- contrib/package/remote-update/files/usr/sbin/remote-update | 7 +++++-- 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() -- 2.25.1