mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-10 18:34:18 +08:00
🎄 Sync 2026-04-23 03:14:31
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
[ ! -f "/usr/share/ucitrack/luci-app-hotplug.json" ] && {
|
||||
cat > /usr/share/ucitrack/luci-app-hotplug.json << EEOF
|
||||
{
|
||||
"config": "hotplug",
|
||||
"init": "hotplug"
|
||||
}
|
||||
EEOF
|
||||
}
|
||||
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
delete ucitrack.@hotplug[-1]
|
||||
add ucitrack hotplug
|
||||
set ucitrack.@hotplug[-1].init=hotplug
|
||||
commit ucitrack
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
exit 0
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"admin/services/hotplug": {
|
||||
"title": "Hotplug Rules",
|
||||
"order": 25,
|
||||
"action": {
|
||||
"type": "alias",
|
||||
"path": "admin/services/hotplug/iface"
|
||||
},
|
||||
"depends": {
|
||||
"acl": [ "luci-app-hotplug" ],
|
||||
"uci": { "hotplug": true }
|
||||
}
|
||||
},
|
||||
|
||||
"admin/services/hotplug/iface": {
|
||||
"title": "iface",
|
||||
"order": 20,
|
||||
"action": {
|
||||
"type": "view",
|
||||
"path": "hotplug/iface"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"luci-app-hotplug": {
|
||||
"description": "Grant UCI access for luci-app-hotplug",
|
||||
"read": {
|
||||
"uci": [ "hotplug" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "hotplug" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user