mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-12 12:08:53 +01:00
voice_client: add ringing_status section if it is missing
This commit is contained in:
parent
794223e29e
commit
8f48ff9e83
1 changed files with 15 additions and 0 deletions
15
voice-client/files/etc/uci-defaults/99-voice_client
Executable file
15
voice-client/files/etc/uci-defaults/99-voice_client
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci -q get voice_client.RINGING_STATUS >/dev/null && exit 0
|
||||
|
||||
uci -q batch <<-EOT
|
||||
add voice_client ringing_status
|
||||
rename voice_client.@ringing_status[-1]=RINGING_STATUS
|
||||
set voice_client.RINGING_STATUS.status=0
|
||||
set voice_client.RINGING_STATUS.enabled=1
|
||||
set voice_client.RINGING_STATUS.shouldring=1
|
||||
commit voice_client
|
||||
EOT
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
Add table
Reference in a new issue