X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fdns;h=377a26966459dc9035dfb7ff4d7f9443269ee04f;hb=1c790b3cd611acd2dffaa765433b0619309a1b81;hp=dd4ef7c9000a9ea6bb92f8a2a0d522a4ca610745;hpb=914cdcee7fbcbc38ac54c5a8213d8f7ece0c580e;p=myplc.git diff --git a/plc.d/dns b/plc.d/dns index dd4ef7c..377a269 100755 --- a/plc.d/dns +++ b/plc.d/dns @@ -1,6 +1,8 @@ #!/bin/bash +# $Id$ +# $URL$ # -# priority: 850 +# priority: 950 # # Start local DNS server to provide minimal DNS forward resolution for # ourselves and our nodes. @@ -8,14 +10,12 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ -# # Source function library and configuration . /etc/plc.d/functions . /etc/planetlab/plc_config -SIGNATURE="; generated by /etc/plc.d/dns --- DO NOT REMOVE THIS TEXT!" +SIGNATURE="; generated by /etc/plc.d/dns --- DO NOT REMOVE THIS TEXT" # Be verbose set -x @@ -78,14 +78,12 @@ case "$1" in MESSAGE=$"Removing /etc/plc_hosts" dialog "$MESSAGE" [ -f "/etc/plc_hosts" ] && rm -f /etc/plc_hosts - check result "" fi if [ $PLC_DNS_ENABLED -eq 0 -a -f "/etc/resolv_plc.backup" ] ; then MESSAGE="Restoring /etc/resolv.conf" - mv -f /etc/resolv_plc.backup /etc/resolv.conf - check dialog "$MESSAGE" + mv -f /etc/resolv_plc.backup /etc/resolv.conf result "" fi