diff options
author | Erik Troan <ewt@redhat.com> | 1997-09-16 14:12:05 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1997-09-16 14:12:05 +0000 |
commit | ced9dffda28f1ec2b060f3e419cf3c6b964b03a1 (patch) | |
tree | da3f56c24861ddc77e2910291c71adc12dca136b /sysconfig/network-scripts/ifdhcpc-done | |
download | initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.gz initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.bz2 initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.tar.xz initscripts-ced9dffda28f1ec2b060f3e419cf3c6b964b03a1.zip |
Initial revision
Diffstat (limited to 'sysconfig/network-scripts/ifdhcpc-done')
-rw-r--r-- | sysconfig/network-scripts/ifdhcpc-done | 20 |
1 files changed, 20 insertions, 0 deletions
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 |