diff options
Diffstat (limited to 'contrib/package/remote-update/files')
-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 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() |