bkruse: branch aadk r599 - /branches/aadk/config/networking.html
asterisk-gui-commits at lists.digium.com
asterisk-gui-commits at lists.digium.com
Tue Apr 3 15:30:02 MST 2007
Author: bkruse
Date: Tue Apr 3 17:30:02 2007
New Revision: 599
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=599
Log:
fixed networking.html (as qwell suggested) to not have long strings, and put things in variables where they belong. Props to jparker
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=599&r1=598&r2=599
==============================================================================
--- branches/aadk/config/networking.html (original)
+++ branches/aadk/config/networking.html Tue Apr 3 17:30:02 2007
@@ -44,13 +44,15 @@
networkingcallbacks.savechanges = function(){
- 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 + "\" > /var/lib/asterisk/static-http/config/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 + "\" >> /var/lib/asterisk/static-http/config/network.params";
-
- var cmd3 = "echo \" DNS_LAN=" + _$('DNS_LAN').value + " START_RANGE_LAN=" + _$('START_RANGE_LAN').value + " END_RANGE_LAN=" + _$('END_RANGE_LAN').value + " SSH_STATUS=" + _$('SSH_STATUS').value + "\" >> /var/lib/asterisk/static-http/config/network.params";
-
- var cmd4 = "echo \" HOSTNAME=" + _$('HOSTNAME').value + " LEASE_LAN=" + _$('LEASE_LAN').value + " NTP_LAN=" + _$('NTP_LAN').value + " TFTP_LAN=" + _$('TFTP_LAN').value + " DOMAIN_LAN=" + _$('DOMAIN_LAN').value + " MAX_LEASE=" + _$('MAX_LEASE') + "\" >> /var/lib/asterisk/static-http/config/network.params";
+ 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;
+
+ var cmd3 = "echo \" DNS_LAN=" + _$('DNS_LAN').value + " START_RANGE_LAN=" + _$('START_RANGE_LAN').value + " END_RANGE_LAN=" + _$('END_RANGE_LAN').value + " SSH_STATUS=" + _$('SSH_STATUS').value + "\" >> " + network_params;
+
+ var cmd4 = "echo \" HOSTNAME=" + _$('HOSTNAME').value + " LEASE_LAN=" + _$('LEASE_LAN').value + " NTP_LAN=" + _$('NTP_LAN').value + " TFTP_LAN=" + _$('TFTP_LAN').value + " DOMAIN_LAN=" + _$('DOMAIN_LAN').value + " MAX_LEASE=" + _$('MAX_LEASE') + "\" >> " + network_params;
var cmd5 = asterisk_guiNetworkSettings;
More information about the asterisk-gui-commits
mailing list