#!/bin/bash
+# $Id$
+# $URL$
#
# priority: 100
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
# Source function library and configuration
. /etc/plc.d/functions
# Be verbose
set -x
+[ "$PLC_HOSTS_ENABLED" -ne 1 ] && exit 0
+
case "$1" in
start)
MESSAGE=$"Generating network files"
if [ -f /etc/hosts_plc.backup ] ; then
mv -f /etc/hosts_plc.backup /etc/hosts
fi
+ dialog "$MESSAGE"
result "$MESSAGE"
;;
esac