luci-app-opkg: update default opkg list dir 4136/head
authorHuangbin Zhan <zhanhb88@gmail.com>
Sun, 7 Jun 2020 14:08:35 +0000 (22:08 +0800)
committerHuangbin Zhan <zhanhb88@gmail.com>
Sun, 7 Jun 2020 14:08:55 +0000 (22:08 +0800)
Signed-off-by: Huangbin Zhan <zhanhb88@gmail.com>
applications/luci-app-opkg/root/usr/libexec/opkg-call

index 5930977112909be8477a219664b06329b24c7da3..1234b70330aa65b29d91a3dc512a68b301142e2e 100755 (executable)
@@ -11,7 +11,7 @@ case "$action" in
        ;;
        list-available)
                lists_dir=$(sed -rne 's#^lists_dir \S+ (\S+)#\1#p' /etc/opkg.conf /etc/opkg/*.conf 2>/dev/null | tail -n 1)
-               find "${lists_dir:-/tmp/opkg-lists}" -type f '!' -name '*.sig' | xargs -r gzip -cd
+               find "${lists_dir:-/usr/lib/opkg/lists}" -type f '!' -name '*.sig' | xargs -r gzip -cd
        ;;
        install|update|remove)
                (