diff --git a/Platform/user/configm/config-server/dhcp_config/dhcp_subnet_config.c b/Platform/user/configm/config-server/dhcp_config/dhcp_subnet_config.c index e032b4bfc..d53ffd0ca 100644 --- a/Platform/user/configm/config-server/dhcp_config/dhcp_subnet_config.c +++ b/Platform/user/configm/config-server/dhcp_config/dhcp_subnet_config.c @@ -125,7 +125,7 @@ ret_code dhcp_subnet_config_proc(uint source, uint config_type, */ //Ìí¼Ó½Ó¿Ú - snprintf(cmd, len, "sed -r -i 's/INTERFACESv4=\"/INTERFACESv4=\"%s /g' /etc/default/isc-dhcp-server", interface->valuestring); + snprintf(cmd, len, "sed -r -i 's/INTERFACES=\"/INTERFACES=\"%s /g' /etc/default/isc-dhcp-server", interface->valuestring); system(cmd); memset(cmd, 0, len + 1); snprintf(cmd, len, "echo -e 'subnet %s netmask %s {\\n range %s;\\n option subnet-mask %s;\\n option routers %s;' >> /etc/dhcp/dhcpd.conf",