From ea1e9b6e2a1b57737ffad962a15ba3528eff9b22 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 1 Feb 2016 11:00:46 +0530 Subject: [PATCH] dynamicdns: Fix writing configuration for no NAT - When writing the configuration file for no NAT case, append then last part of the file instead of overwriting. - Also 'echo' statements are missing leading to attempt to execute the config options instead of writing them to a file. --- actions/dynamicdns | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/dynamicdns b/actions/dynamicdns index 3968d744f..aae9b9992 100755 --- a/actions/dynamicdns +++ b/actions/dynamicdns @@ -167,11 +167,11 @@ doWriteCFG() echo "NAT no" >> ${HELPERCFG} # if this file is added ez-ipupdate will take ip form this interface { - "interface=${default_interface}" + echo "interface=${default_interface}" # if this line is added to config file, ez-ipupdate will be launched on startup via init.d - "daemon" - "execute=${0} success" - } > ${out_file} + echo "daemon" + echo "execute=${0} success" + } >> ${out_file} fi fi }