contrib/package: target name was stripped from base-files package name upstream,...
[project/luci.git] / contrib / package / remote-update / files / usr / sbin / remote-update
index bffc449..e9a0a98 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()