From 992b18389a580151125f2c6b0d783985584c036e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 10 Apr 2025 17:55:27 -0600 Subject: [PATCH] GRP add grandstream_wifi_enabled This is needed to prevent removing wifi settings that were set manually. --- .../provision/grandstream/grp2612/{$mac}.xml | 4 +- .../provision/grandstream/grp2613/{$mac}.xml | 2 + .../provision/grandstream/grp2614/{$mac}.xml | 4 +- .../provision/grandstream/grp2615/{$mac}.xml | 37 ++++++++++++------- .../provision/grandstream/grp2616/{$mac}.xml | 4 +- 5 files changed, 34 insertions(+), 17 deletions(-) diff --git a/resources/templates/provision/grandstream/grp2612/{$mac}.xml b/resources/templates/provision/grandstream/grp2612/{$mac}.xml index 6c9def82f8..05a8a23214 100644 --- a/resources/templates/provision/grandstream/grp2612/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2612/{$mac}.xml @@ -1478,6 +1478,7 @@ + {if isset($grandstream_wifi_enabled) && $grandstream_wifi_enabled == 'Yes'} @@ -1846,6 +1847,7 @@ Low + {/if} @@ -4760,4 +4762,4 @@ - \ No newline at end of file + diff --git a/resources/templates/provision/grandstream/grp2613/{$mac}.xml b/resources/templates/provision/grandstream/grp2613/{$mac}.xml index 43c43304d6..c7f92e3630 100644 --- a/resources/templates/provision/grandstream/grp2613/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2613/{$mac}.xml @@ -1478,6 +1478,7 @@ + {if isset($grandstream_wifi_enabled) && $grandstream_wifi_enabled == 'Yes'} @@ -1846,6 +1847,7 @@ Low + {/if} diff --git a/resources/templates/provision/grandstream/grp2614/{$mac}.xml b/resources/templates/provision/grandstream/grp2614/{$mac}.xml index 6c9def82f8..05a8a23214 100644 --- a/resources/templates/provision/grandstream/grp2614/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2614/{$mac}.xml @@ -1478,6 +1478,7 @@ + {if isset($grandstream_wifi_enabled) && $grandstream_wifi_enabled == 'Yes'} @@ -1846,6 +1847,7 @@ Low + {/if} @@ -4760,4 +4762,4 @@ - \ No newline at end of file + diff --git a/resources/templates/provision/grandstream/grp2615/{$mac}.xml b/resources/templates/provision/grandstream/grp2615/{$mac}.xml index 2aecc22a81..05a8a23214 100644 --- a/resources/templates/provision/grandstream/grp2615/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2615/{$mac}.xml @@ -142,7 +142,7 @@ {$grandstream_nat_traversal} {else} Auto - {/if} + {/if} @@ -1478,9 +1478,10 @@ + {if isset($grandstream_wifi_enabled) && $grandstream_wifi_enabled == 'Yes'} - + Off @@ -1846,6 +1847,7 @@ Low + {/if} @@ -3754,12 +3756,19 @@ + {if isset($ntp_server_primary)} + {$ntp_server_primary} + {else} pool.ntp.org + {/if} - - + {if isset($ntp_server_secondary)} + {$ntp_server_secondary} + {else} + 2.us.pool.ntp.org + {/if} @@ -4463,14 +4472,14 @@ - - - - - - - - + + + + + + + + @@ -4528,8 +4537,8 @@ - + + {foreach $keys['memory'] as $row} diff --git a/resources/templates/provision/grandstream/grp2616/{$mac}.xml b/resources/templates/provision/grandstream/grp2616/{$mac}.xml index 6c9def82f8..05a8a23214 100644 --- a/resources/templates/provision/grandstream/grp2616/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp2616/{$mac}.xml @@ -1478,6 +1478,7 @@ + {if isset($grandstream_wifi_enabled) && $grandstream_wifi_enabled == 'Yes'} @@ -1846,6 +1847,7 @@ Low + {/if} @@ -4760,4 +4762,4 @@ - \ No newline at end of file +