pari: branch aadk r762 - /branches/aadk/config/networking.html

asterisk-gui-commits at lists.digium.com asterisk-gui-commits at lists.digium.com
Wed Apr 25 14:57:32 MST 2007


Author: pari
Date: Wed Apr 25 16:57:32 2007
New Revision: 762

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=762
Log:
DHCP_LAN , DHCP_WAN on/off

Modified:
    branches/aadk/config/networking.html

Modified: branches/aadk/config/networking.html
URL: http://svn.digium.com/view/asterisk-gui/branches/aadk/config/networking.html?view=diff&rev=762&r1=761&r2=762
==============================================================================
--- branches/aadk/config/networking.html (original)
+++ branches/aadk/config/networking.html Wed Apr 25 16:57:32 2007
@@ -81,9 +81,12 @@
 
 		var network_params = "/etc/asterisk/scripts/network.params";
 
-		var cmd1 = "echo \"DHCP_WAN=" + _$('DHCP_WAN').value + " IP_WAN=" + _$('IP_WAN').value + " SUBNET_WAN=" + _$('SUBNET_WAN').value + " GATEWAY_WAN=" + _$('GATEWAY_WAN').value + " DNS_WAN=" + _$('DNS_WAN').value + "\" > " + network_params;
-
-		var cmd2 = "echo \" DHCP_LAN=" + _$('DHCP_LAN').value + " IP_LAN=" + _$('IP_LAN').value + " SUBNET_LAN=" + _$('SUBNET_LAN').value + " GATEWAY_LAN=" + _$('GATEWAY_LAN').value + " DNS_LAN=" + _$('DNS_LAN').value + "\" >> " + network_params;
+		if(_$('DHCP_WAN').checked){var dwv = "on"; }else{var dwv = "off"; }
+		if(_$('DHCP_LAN').checked){var dlv = "on"; }else{var dlv = "off"; }
+
+		var cmd1 = "echo \"DHCP_WAN=" + dwv + " IP_WAN=" + _$('IP_WAN').value + " SUBNET_WAN=" + _$('SUBNET_WAN').value + " GATEWAY_WAN=" + _$('GATEWAY_WAN').value + " DNS_WAN=" + _$('DNS_WAN').value + "\" > " + network_params;
+
+		var cmd2 = "echo \" DHCP_LAN=" + dlv + " IP_LAN=" + _$('IP_LAN').value + " SUBNET_LAN=" + _$('SUBNET_LAN').value + " GATEWAY_LAN=" + _$('GATEWAY_LAN').value + " DNS_LAN=" + _$('DNS_LAN').value + "\" >> " + network_params;
 
 		var cmd3 = "echo \" DNS_LAN=" + _$('DNS_LAN').value + " START_RANGE_LAN=" + _$('START_RANGE_LAN').value + " END_RANGE_LAN=" + _$('END_RANGE_LAN').value + " ROUTER_LAN=" + _$('ROUTER_LAN').value + " SSHACCESS=" + _$('SSHACCESS').value + "\" >> " + network_params;
 



More information about the asterisk-gui-commits mailing list