]> git.pld-linux.org Git - projects/rc-scripts.git/blob - sysconfig/network-scripts/ifdhcpc-done
5444f105139a35851b397015494393d54bac8c8d
[projects/rc-scripts.git] / sysconfig / network-scripts / ifdhcpc-done
1 #!/bin/sh
2
3 SLEEPPIDFILE=/var/run/dhcp-wait-${IFNAME}.pid
4
5 if [ ! -f $SLEEPPIDFILE ]; then
6     # the parent must have timed out already -- we can't do much about
7     # it now
8     echo "DHCP configured but ifup timed out"
9     #exit 0
10 fi
11
12 # get the pid of the process which is waiting for this to complete
13 SLEEPPID=`cat $SLEEPPIDFILE`
14 rm -f $SLEEPPIDFILE
15 kill $SLEEPPID
16
17 if [ -f /etc/dhcpc/resolv.conf ]; then
18         cp /etc/dhcpc/resolv.conf /etc
19 fi
This page took 0.150437 seconds and 2 git commands to generate.