🗽 Sync 2026-11-11 15:31:38

This commit is contained in:
github-actions[bot] committed 2026-11-11 15:31:38 +08:00
1 parent da9e4bea36
commit 2e3c0a9b33
189 files changed
+29797 -10433

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
set -eu
root=${IPKG_INSTROOT:-}
source="$root/usr/share/fastnet/quickstart/fastnet.json"
target="$root/usr/share/quickstart/cards.d/fastnet.json"
case "${1:-install}" in
install)
[ -f "$source" ] || exit 1
entry=$(sed -n 's/^[[:space:]]*"entry": "\(\/luci-static\/fastnet\/quickstart\/card\.[a-f0-9][a-f0-9]*\.js\)".*/\1/p' "$source")
[ -n "$entry" ] && [ -f "$root/www$entry" ] || exit 1
umask 022
mkdir -p "${target%/*}"
temporary="$target.new.$$"
trap 'rm -f "$temporary"' EXIT HUP INT TERM
cp "$source" "$temporary"
mv -f "$temporary" "$target"
;;
remove)
# Never delete another package's registration, including a replaced file.
if [ -f "$source" ] && cmp -s "$source" "$target"; then rm -f "$target"; fi
;;
*) exit 2 ;;
esac
@@ -0,0 +1,23 @@
{
"schemaVersion": 1,
"id": "plugin.fastnet",
"title": "外网测速",
"glyph": "activity",
"abi": "quickstart-card-v1",
"version": "0.8.9-1",
"apiBase": "/cgi-bin/luci/admin/services/fastnet/card",
"forms": {
"standard": {
"minWidth": 280,
"minHeight": 260
},
"summary": {
"minWidth": 240,
"minHeight": 148
}
},
"stacked": [
"summary"
],
"entry": "/luci-static/fastnet/quickstart/card.dfb0ce55.js"
}