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 192366d77a0e8d2bdf9f73ed50d93fb78207ca1c..4fa7e38dced271cb72e509c99aa6b96d779494c9 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()