Add aaa-12 修改dhcp subnet
SOL 修改dhcp subnet 修改人:wuqihy 检视人:yinbin Signed-off-by: wuqihy <wuqihy@cmhi.chinamobile.com>
This commit is contained in:
parent
bced0a2bf4
commit
633e310fd1
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue