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.
This commit is contained in:
Bifur1
2025-05-30 23:13:53 -04:00
committed by GitHub
parent dde70b8508
commit 4ca21d906f

View File

@@ -1794,7 +1794,7 @@
<!-- # IP Address. 0 - DHCP, 2 - PPPoE, 1 - Static IP -->
<!-- # Number: 0, 1, 2 -->
<!-- # Mandatory -->
<P8>0</P8>
{if isset($grandstream_ip_mode)}<P8>{$grandstream_ip_mode}</P8>{else}<P8>0</P8>{/if}
<!-- ################################################################################# -->
<!-- # DHCP -->