contrib/package: remote-update: merge r5303 as well
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 19 Oct 2009 12:32:20 +0000 (12:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 19 Oct 2009 12:32:20 +0000 (12:32 +0000)
contrib/package/remote-update/files/usr/sbin/remote-update

index 192366d..4fa7e38 100755 (executable)
@@ -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()