#!/bin/bash
+# $Id$
+# $URL$
#
-# priority: 850
+# priority: 950
#
# Start local DNS server to provide minimal DNS forward resolution for
# ourselves and our nodes.
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
# Source function library and configuration
. /etc/plc.d/functions
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