initial commit
This commit is contained in:
29
root/usr/share/luci/menu.d/luci-app-tailscale.json
Normal file
29
root/usr/share/luci/menu.d/luci-app-tailscale.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"admin/services/tailscale": {
|
||||
"title": "Tailscale",
|
||||
"order": 90,
|
||||
"action": {
|
||||
"type": "firstchild"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-tailscale" ],
|
||||
"uci": { "tailscale": true }
|
||||
}
|
||||
},
|
||||
"admin/services/tailscale/base": {
|
||||
"title": "Base settings",
|
||||
"order": 10,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "tailscale/base"
|
||||
}
|
||||
},
|
||||
"admin/services/tailscale/interface": {
|
||||
"title": "Interface info",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "tailscale/interface"
|
||||
}
|
||||
}
|
||||
}
|
||||
17
root/usr/share/rpcd/acl.d/luci-app-tailscale.json
Normal file
17
root/usr/share/rpcd/acl.d/luci-app-tailscale.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"luci-app-tailscale": {
|
||||
"description": "Grant access to Tailscale configuration",
|
||||
"read": {
|
||||
"file": {
|
||||
"/sbin/ifconfig": [ "exec" ]
|
||||
},
|
||||
"ubus": {
|
||||
"service": [ "list" ]
|
||||
},
|
||||
"uci": [ "tailscale" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "tailscale" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user