From 4ca21d906fafc8db7a818217f66060c2b3d5186f Mon Sep 17 00:00:00 2001
From: Bifur1 <166629756+Bifur1@users.noreply.github.com>
Date: Fri, 30 May 2025 23:13:53 -0400
Subject: [PATCH] Add Grandstream variable for IP mode (DHCP, Static, Etc)
(#7380)
* Update {$mac}.xml
Allow device to not revert back to DHCP on reboot and keep manually entered static IP.
* Add variable for IP mode (DHCP, Static, etc)
Prevents device from reverting back to DHCP on reboot if a static IP is manually set.
---
resources/templates/provision/grandstream/ht818/{$mac}.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/resources/templates/provision/grandstream/ht818/{$mac}.xml b/resources/templates/provision/grandstream/ht818/{$mac}.xml
index a06247a3ef..26c2cc2b70 100644
--- a/resources/templates/provision/grandstream/ht818/{$mac}.xml
+++ b/resources/templates/provision/grandstream/ht818/{$mac}.xml
@@ -1794,7 +1794,7 @@
- 0
+ {if isset($grandstream_ip_mode)}{$grandstream_ip_mode}{else}0{/if}