From 83ec57414ce1d2b2025a240f6055dcfa862a51ad Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 1 Feb 2016 11:03:54 +0530 Subject: [PATCH] dynamicdns: Fix starting daemon for no NAT Incase the machine is not behind NAT, fix the logic that decides to start the daemon. --- actions/dynamicdns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/dynamicdns b/actions/dynamicdns index f437e657a..34aca8d87 100755 --- a/actions/dynamicdns +++ b/actions/dynamicdns @@ -339,7 +339,7 @@ case ${cmd} in if [ "$(grep ^NAT ${HELPERCFG} | awk '{print $2}')" = "no" ];then #if we are not behind a NAT device and we use gnudip, start the daemon tool gnudipServer=$(grep ^server= ${cfgfile} 2> /dev/null | cut -d = -f 2- |grep -v ^\'\') - if [ -f ${CFG} -a ! -z "${gnudipServer}" ];then + if [ ! -f ${CFG} -a ! -z "${gnudipServer}" ];then mv ${CFG_disabled} ${CFG} /etc/init.d/${TOOLNAME} start fi