🐶 Sync 2025-11-02 14:26:26
This commit is contained in:
13
luci-app-mentohust/root/etc/uci-defaults/luci-mentohust
Executable file
13
luci-app-mentohust/root/etc/uci-defaults/luci-mentohust
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f "/etc/config/ucitrack" ] && {
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@mentohust[-1]
|
||||
add ucitrack mentohust
|
||||
set ucitrack.@mentohust[-1].init=mentohust
|
||||
commit ucitrack
|
||||
EOF
|
||||
}
|
||||
|
||||
rm -rf /tmp/luci-indexcache*
|
||||
exit 0
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"admin/services/mentohust": {
|
||||
"title": "MentoHUST",
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "mentohust"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-mentohust" ],
|
||||
"uci": { "mentohust": true }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"luci-app-mentohust": {
|
||||
"description": "Grant UCI access for luci-app-mentohust",
|
||||
"read": {
|
||||
"ubus": {
|
||||
"service": [ "list" ]
|
||||
},
|
||||
"uci": [ "mentohust" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "mentohust" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"config": "mentohust",
|
||||
"init": "mentohust"
|
||||
}
|
||||
Reference in New Issue
Block a user