mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
juci: configure menus based on whether we have voice, dect and adsl/vdsl
This commit is contained in:
parent
67bf9c7cc6
commit
fac97aafc4
1 changed files with 20 additions and 9 deletions
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# install the default menus if they are not already in the config
|
||||
uci -q get juci.@menu[0] || cat >> /etc/config/juci << EOF
|
||||
uci -q get juci.@menu[0] || {
|
||||
|
||||
cat >> /etc/config/juci << EOF
|
||||
config juci_event 'juci_event'
|
||||
list filter firewall.ssh
|
||||
list filter network.netifd
|
||||
|
|
@ -14,7 +15,8 @@ config juci_event 'juci_event'
|
|||
config menu
|
||||
option path 'overview'
|
||||
option page 'overview'
|
||||
|
||||
EOF
|
||||
db -q get hw.board.hasVoice && cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'voice'
|
||||
option page 'voice'
|
||||
|
|
@ -82,12 +84,14 @@ config menu
|
|||
option page 'voice-speed-dialing'
|
||||
list acls 'juci-inteno-voice-client'
|
||||
option modes 'expert'
|
||||
|
||||
EOF
|
||||
db -q get hw.board.hasDect && cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'voice/dect'
|
||||
option page 'voice-dect'
|
||||
list acls 'juci-natalie-dect'
|
||||
|
||||
EOF
|
||||
cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'internet'
|
||||
option page 'network'
|
||||
|
|
@ -105,19 +109,22 @@ config menu
|
|||
option page 'page-broadcom-ethernet-phy'
|
||||
list acls 'juci-broadcom-ethernet'
|
||||
list acls 'user-support'
|
||||
|
||||
EOF
|
||||
db -q get hw.board.hasAdsl && cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'internet/ethernet/adsl'
|
||||
option page 'page-broadcom-adsl'
|
||||
list acls 'juci-broadcom-dsl'
|
||||
list acls 'user-support'
|
||||
|
||||
EOF
|
||||
db -q get hw.board.hasVdsl && cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'internet/ethernet/vdsl'
|
||||
option page 'page-broadcom-vdsl'
|
||||
list acls 'juci-broadcom-dsl'
|
||||
list acls 'user-support'
|
||||
|
||||
EOF
|
||||
cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'internet/ethernet/vlan'
|
||||
option page 'page-broadcom-ethernet-vlan'
|
||||
|
|
@ -442,12 +449,14 @@ config menu
|
|||
option path 'status/diagnostics'
|
||||
option page 'status-diagnostics'
|
||||
list acls 'juci-diagnostics'
|
||||
|
||||
EOF
|
||||
db -q get hw.board.hasVoice && cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'status/phone'
|
||||
option page 'status-phone'
|
||||
list acls 'juci-inteno-voice-client'
|
||||
|
||||
EOF
|
||||
cat >> /etc/config/juci << EOF
|
||||
config menu
|
||||
option path 'status/events'
|
||||
option page 'status-events'
|
||||
|
|
@ -495,6 +504,7 @@ config login
|
|||
list write 'juci-minidlna'
|
||||
list write 'juci-mod-status'
|
||||
list write 'juci-mod-system'
|
||||
list write 'juci-mod-system-admin'
|
||||
list write 'juci-natalie-dect'
|
||||
list write 'juci-netmode'
|
||||
list write 'juci-network-netifd'
|
||||
|
|
@ -594,3 +604,4 @@ EOF
|
|||
/etc/init.d/rpcd restart
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue