From 51dd1bb0007802a4b7b186bc6c569dcf82bc5e0d Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 1 Feb 2016 11:02:43 +0530 Subject: [PATCH] dynamicdns: Fix an invalid syntax 'local' keyword can't be used outside a method. --- actions/dynamicdns | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/dynamicdns b/actions/dynamicdns index aae9b9992..f437e657a 100755 --- a/actions/dynamicdns +++ b/actions/dynamicdns @@ -338,7 +338,7 @@ case ${cmd} in doGetWANIP 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 - local gnudipServer=$(grep ^server= ${cfgfile} 2> /dev/null | cut -d = -f 2- |grep -v ^\'\') + gnudipServer=$(grep ^server= ${cfgfile} 2> /dev/null | cut -d = -f 2- |grep -v ^\'\') if [ -f ${CFG} -a ! -z "${gnudipServer}" ];then mv ${CFG_disabled} ${CFG} /etc/init.d/${TOOLNAME} start