Merge pull request #4136 from zhanhb/default-opkg-lists-dir

luci-app-opkg: update default opkg list dir
This commit is contained in:
Jo-Philipp Wich 2020-06-08 09:02:49 +02:00 committed by GitHub
commit 0412e85a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
(