OSDN Git Service

luci-theme-argon: use uclient-fetch for smaller size
authorTianling Shen <cnsztl@immortalwrt.org>
Sat, 21 May 2022 08:10:58 +0000 (16:10 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Sat, 21 May 2022 08:10:58 +0000 (16:10 +0800)
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
themes/luci-theme-argon/Makefile
themes/luci-theme-argon/root/usr/libexec/argon/bing_wallpaper

index 2748acc..3dc34db 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 
 LUCI_TITLE:=Argon Theme
-LUCI_DEPENDS:=+curl +jsonfilter
+LUCI_DEPENDS:=+wget +jsonfilter
 PKG_VERSION:=2.2.9.4
 PKG_RELEASE:=20220425
 
index 89e0159..459fbca 100755 (executable)
@@ -6,7 +6,7 @@ CACHE=/var/run/argon_bing.url
 WRLOCK=/var/lock/argon_bing.lock
 
 fetch_url_path() {
-    curl --fail --show-error --max-time 1 \
+    wget -T1 -qO- \
         "$BING_BASE/HPImageArchive.aspx?format=js&idx=0&n=1&mkt=en-US" 2>/dev/null \
         | jsonfilter -q -e '@.images[0].url'
 }