Commit 035668e1 authored by Mike Hibler's avatar Mike Hibler
Browse files

Put date stamps in ala the BSD versions

parent 15c7390a
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004-2005 University of Utah and the Flux Group.
# Copyright (c) 2004-2006 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
......@@ -15,7 +15,7 @@ if [ xxx$interface = xxxlo ]; then
return
fi
echo "${interface}: ${reason}" >>$LOGDIR/dhclient-enter.log 2>&1
echo "`date`: ${interface}: ${reason}" >>$LOGDIR/dhclient-enter.log 2>&1
#
# XXX Hack to force the duplex on interfaces
......@@ -92,4 +92,4 @@ elif [ "$new_network_number" = "10.200.1.0" ]; then
setduplex $interface >>$LOGDIR/dhclient-enter.log 2>&1
fi
echo "${interface}: ${reason}: done" >>$LOGDIR/dhclient-enter.log 2>&1
echo "`date`: ${interface}: ${reason}: done" >>$LOGDIR/dhclient-enter.log 2>&1
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# All rights reserved.
#
. /etc/emulab/paths.sh
echo "${interface}: ${reason}" >>$LOGDIR/dhclient-exit.log 2>&1
echo "`date`: ${interface}: ${reason}" >>$LOGDIR/dhclient-exit.log 2>&1
if [ x$reason != xREBOOT -a x$reason != xBOUND -a x$reason != xRENEW -a x$reason != xREBIND ]
then
......@@ -65,7 +65,7 @@ fi
#
$BINDIR/sethostname.dhclient >$LOGDIR/dhclient.log 2>&1
echo "${interface}: ${reason}: done" >>$LOGDIR/dhclient-exit.log 2>&1
echo "`date`: ${interface}: ${reason}: done" >>$LOGDIR/dhclient-exit.log 2>&1
#
# The killing of dhclient and shutdown of other interfaces is handled
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment