diff --git a/change_network_gateway.sh b/change_network_gateway.sh index e587f77..576d318 100755 --- a/change_network_gateway.sh +++ b/change_network_gateway.sh @@ -340,6 +340,9 @@ for file in $files ; do fi fi done +if [[ -f "${base_dir}/${network}/default_isc-dhcp-server.${_network}" ]] ; then + cp -a "${base_dir}/${network}/default_isc-dhcp-server.${_network}" "/etc/default/isc-dhcp-server" +fi if $failed ; then echo_FAILED error $(cat $logfile) diff --git a/copy_gateway-config.sh b/copy_gateway-config.sh index 4f79e92..503e36b 100755 --- a/copy_gateway-config.sh +++ b/copy_gateway-config.sh @@ -130,6 +130,9 @@ fi if [ -f "${filesystem_prefix}/etc/dhcp/hosts.w-lan.conf" ]; then cp ${filesystem_prefix}/etc/dhcp/hosts.w-lan.conf ${homedir_user}/${_dir}/hosts.w-lan.conf.${_network} fi +if [ -f "${filesystem_prefix}/etc/default/isc-dhcp-server" ] ; then + cp -f "${filesystem_prefix}/etc/default/isc-dhcp-server" ${homedir_user}/${_dir}/default_isc-dhcp-server.${_network} +fi # - DSL PPP # - diff --git a/remote-copy_gateway-config.sh b/remote-copy_gateway-config.sh index 359b08f..5ded203 100755 --- a/remote-copy_gateway-config.sh +++ b/remote-copy_gateway-config.sh @@ -128,7 +128,8 @@ files="dhcpd.conf.${_network} dhcpd6.conf.${_network} isc-dhcp6-server.${_network} hosts.lan.conf.${_network} - hosts.w-lan.conf.${_network}" + hosts.w-lan.conf.${_network} + default_isc-dhcp-server.${_network}" manage_files "$files" # - DSL PPP