From 852e38872182f43795621b77cb7732ac0f9336fa Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 25 Jan 2008 19:03:48 +0000 Subject: [PATCH] Do not perform DNS service actions if PLC_DNS_ENABLED!=1 --- plc.d/dns | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plc.d/dns b/plc.d/dns index 9b5b192..b819e32 100755 --- a/plc.d/dns +++ b/plc.d/dns @@ -20,9 +20,7 @@ set -x case "$1" in start) - if [ "$PLC_DNS_ENABLED" != "1" ] ; then - exit 0 - fi + [ $PLC_DNS_ENABLED -ne 1 ] && exit 0 MESSAGE=$"Starting DNS server" dialog "$MESSAGE" @@ -37,6 +35,7 @@ case "$1" in ;; stop) + [ $PLC_DNS_ENABLED -ne 1 ] && exit 0 MESSAGE=$"Stopping DNS server" dialog "$MESSAGE" -- 2.47.0