summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-irqbalance/root
diff options
context:
space:
mode:
authorPuran Lyu <pl2355@nyu.edu>2023-12-29 18:03:15 -0500
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2023-12-30 23:36:31 +0000
commit468ad9f792e648f65321e42f227cead231d4cda9 (patch)
tree6ed6c650269bf6b400b4635b7031efb5c976b7da /applications/luci-app-irqbalance/root
parent16572f1395f02843e5e590870a183780d7f5fc45 (diff)
luci-app-irqbalance: add new package
Add LuCI interface for irqbalance package Signed-off-by: Puran Lyu <pl2355@nyu.edu>
Diffstat (limited to 'applications/luci-app-irqbalance/root')
-rw-r--r--applications/luci-app-irqbalance/root/etc/uci-defaults/90_luci-irqbalance10
-rw-r--r--applications/luci-app-irqbalance/root/usr/share/luci/menu.d/luci-app-irqbalance.json21
-rw-r--r--applications/luci-app-irqbalance/root/usr/share/rpcd/acl.d/luci-app-irqbalance.json25
3 files changed, 56 insertions, 0 deletions
diff --git a/applications/luci-app-irqbalance/root/etc/uci-defaults/90_luci-irqbalance b/applications/luci-app-irqbalance/root/etc/uci-defaults/90_luci-irqbalance
new file mode 100644
index 0000000000..e6ec84c4db
--- /dev/null
+++ b/applications/luci-app-irqbalance/root/etc/uci-defaults/90_luci-irqbalance
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+uci -q batch <<-EOF >/dev/null
+ delete ucitrack.@irqbalance[-1]
+ add ucitrack irqbalance
+ set ucitrack.@irqbalance[-1].init=irqbalance
+ commit ucitrack
+EOF
+
+exit 0
diff --git a/applications/luci-app-irqbalance/root/usr/share/luci/menu.d/luci-app-irqbalance.json b/applications/luci-app-irqbalance/root/usr/share/luci/menu.d/luci-app-irqbalance.json
new file mode 100644
index 0000000000..6a4b29589b
--- /dev/null
+++ b/applications/luci-app-irqbalance/root/usr/share/luci/menu.d/luci-app-irqbalance.json
@@ -0,0 +1,21 @@
+{
+ "admin/services/irqbalance": {
+ "title": "irqbalance",
+ "order": 90,
+ "action": {
+ "type": "view",
+ "path": "irqbalance"
+ },
+ "depends": {
+ "acl": [
+ "luci-app-irqbalance"
+ ],
+ "uci": {
+ "irqbalance": true
+ },
+ "fs": {
+ "/proc/interrupts": "file"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/applications/luci-app-irqbalance/root/usr/share/rpcd/acl.d/luci-app-irqbalance.json b/applications/luci-app-irqbalance/root/usr/share/rpcd/acl.d/luci-app-irqbalance.json
new file mode 100644
index 0000000000..44b6f5ff23
--- /dev/null
+++ b/applications/luci-app-irqbalance/root/usr/share/rpcd/acl.d/luci-app-irqbalance.json
@@ -0,0 +1,25 @@
+{
+ "luci-app-irqbalance": {
+ "description": "Grant UCI access for luci-app-irqbalance",
+ "read": {
+ "file": {
+ "/proc/interrupts": [
+ "read"
+ ]
+ },
+ "ubus": {
+ "service": [
+ "list"
+ ]
+ },
+ "uci": [
+ "irqbalance"
+ ]
+ },
+ "write": {
+ "uci": [
+ "irqbalance"
+ ]
+ }
+ }
+} \ No newline at end of file