mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 01:25:13 +08:00
🎄 Sync 2026-04-23 03:14:31
This commit is contained in:
1 parent
a011aeb96f
commit
263d407c11
97 files changed
+4710
-1
No files matched your search
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
[ ! -f "/usr/share/ucitrack/luci-app-powersupply.json" ] && {
|
||||
cat > /usr/share/ucitrack/luci-app-powersupply.json << EEOF
|
||||
{
|
||||
"config": "powersupply",
|
||||
"init": "powersupply"
|
||||
}
|
||||
EEOF
|
||||
}
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@powersupply[-1]
|
||||
add ucitrack powersupply
|
||||
set ucitrack.@powersupply[-1].init=powersupply
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"admin/services/powersupply": {
|
||||
"title": "PowerSupply",
|
||||
"order": 50,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "powersupply/powersupply"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-powersupply" ],
|
||||
"uci": { "powersupply": true }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"luci-app-powersupply": {
|
||||
"description": "Grant UCI access for luci-app-powersupply",
|
||||
"read": {
|
||||
"uci": [ "powersupply" ],
|
||||
"ubus": {
|
||||
"powersupply": [ "info" ]
|
||||
}
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "powersupply" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user