mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 16:45:13 +08:00
update 2026-09-24 16:56:26
This commit is contained in:
1 parent
b31a5c3878
commit
e4cee331e9
6885 files changed
+3240523
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f "/etc/config/ucitrack" ] && {
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@openlist2[-1]
|
||||
add ucitrack openlist2
|
||||
set ucitrack.@openlist2[-1].init=openlist2
|
||||
commit ucitrack
|
||||
EOF
|
||||
}
|
||||
|
||||
rm -rf /tmp/luci-*
|
||||
exit 0
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"admin/services/openlist2": {
|
||||
"title": "OpenList",
|
||||
"action": {
|
||||
"type": "firstchild"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-openlist2" ],
|
||||
"uci": { "openlist2": true }
|
||||
}
|
||||
},
|
||||
"admin/services/openlist2/basic": {
|
||||
"title": "Setting",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "openlist2/basic"
|
||||
}
|
||||
},
|
||||
"admin/services/openlist2/logs": {
|
||||
"title": "Logs",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "openlist2/logs"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"luci-app-openlist2": {
|
||||
"description": "Grant UCI access for luci-app-openlist2",
|
||||
"read": {
|
||||
"file": {
|
||||
"/usr/bin/openlist2": [ "exec" ],
|
||||
"/*": [ "read" ]
|
||||
},
|
||||
"ubus": {
|
||||
"service": [ "list" ]
|
||||
},
|
||||
"uci": [ "openlist2" ]
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/*": [ "write" ]
|
||||
},
|
||||
"uci": [ "openlist2" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"config": "openlist2",
|
||||
"init": "openlist2"
|
||||
}
|
||||
Reference in new issue
Block a user