From 6b019d3cbee72821970d42a029583643a6845443 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 19 Oct 2009 12:32:20 +0000 Subject: [PATCH] contrib/package: remote-update: merge r5303 as well --- contrib/package/remote-update/files/usr/sbin/remote-update | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/package/remote-update/files/usr/sbin/remote-update b/contrib/package/remote-update/files/usr/sbin/remote-update index 192366d77a..4fa7e38dce 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.30.2