From: Jo-Philipp Wich Date: Sat, 22 Aug 2009 17:56:48 +0000 (+0000) Subject: contrib/package: target name was stripped from base-files package name upstream,... X-Git-Tag: 0.10.0~1161 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1c8db37e8b93855530102ded098daa95076f981b;p=oweals%2Fluci.git contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead --- 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()