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