From ced9dffda28f1ec2b060f3e419cf3c6b964b03a1 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Tue, 16 Sep 1997 14:12:05 +0000 Subject: Initial revision --- sysconfig/network-scripts/ifdhcpc-done | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sysconfig/network-scripts/ifdhcpc-done (limited to 'sysconfig/network-scripts/ifdhcpc-done') diff --git a/sysconfig/network-scripts/ifdhcpc-done b/sysconfig/network-scripts/ifdhcpc-done new file mode 100644 index 00000000..239725de --- /dev/null +++ b/sysconfig/network-scripts/ifdhcpc-done @@ -0,0 +1,20 @@ +#!/bin/sh -x + +SLEEPPIDFILE=/var/run/dhcp-wait-${IFNAME}.pid + +if [ ! -f $SLEEPPIDFILE ]; then + # the parent must have timed out already -- we can't do much about + # it now + echo "DHCP configured but ifup timed out" + #exit 0 +fi + +# get the pid of the process which is waiting for this to complete +SLEEPPID=`cat $SLEEPPIDFILE` +rm -f $SLEEPPIDFILE +kill $SLEEPPID + +if [ -f /etc/dhcpc/resolv.conf ]; then + echo "setting up resolv.conf" >> /tmp/dhcplog + cp /etc/dhcpc/resolv.conf /etc +fi -- cgit v1.2.1