diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-22 17:56:48 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-22 17:56:48 +0000 |
commit | 1c8db37e8b93855530102ded098daa95076f981b (patch) | |
tree | 237c6009fd3ed60dd300862ab95e9d4a45a4abad /contrib/package/remote-update/files/usr/sbin | |
parent | 2903acf1f2b2a1dd7dbca14cd5b0ee9b2cf7be5e (diff) |
contrib/package: target name was stripped from base-files package name upstream, determine arch from kernel apckage instead
Diffstat (limited to 'contrib/package/remote-update/files/usr/sbin')
-rwxr-xr-x | contrib/package/remote-update/files/usr/sbin/remote-update | 7 |
1 files 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 bffc449d08..e9a0a98c1a 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() |