fix resolv.conf issue on plc 4.3
authorBaris Metin <bmetin@verivue.com>
Fri, 13 May 2011 15:30:03 +0000 (11:30 -0400)
committerBaris Metin <bmetin@verivue.com>
Fri, 13 May 2011 15:30:03 +0000 (11:30 -0400)
plc.d/dns

index 9536c3e..adf6c7f 100755 (executable)
--- a/plc.d/dns
+++ b/plc.d/dns
@@ -54,9 +54,9 @@ case "$1" in
                fi
            else
                cp /etc/resolv.conf /etc/resolv.bak
-               mv -f $rfile /etc/resolv.conf
-               chmod 444 /etc/resolv.conf
            fi
+           mv -f $rfile /etc/resolv.conf
+           chmod 444 /etc/resolv.conf
        fi
 
        if [ $PLC_DNS_ENABLED -eq 1 ] ; then