From: Jo-Philipp Wich Date: Mon, 19 Oct 2009 12:32:20 +0000 (+0000) Subject: contrib/package: remote-update: merge r5303 as well X-Git-Tag: 0.9.0~116 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6b019d3cbee72821970d42a029583643a6845443;p=oweals%2Fluci.git contrib/package: remote-update: merge r5303 as well --- diff --git a/contrib/package/remote-update/files/usr/sbin/remote-update b/contrib/package/remote-update/files/usr/sbin/remote-update index 192366d77..4fa7e38dc 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()