2 ########################################################################
5 # Description : DHCP Client Script (initrd version)
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
13 ########################################################################
17 set | grep "^new_" | sed "s|^new_||g" | \
19 sort > /var/ipfire/dhcpc/dhcpcd-$interface.info
21 DNS=`grep "domain_name_servers" /var/ipfire/dhcpc/dhcpcd-$interface.info | cut -d"=" -f2`
22 DNS1=`echo $DNS | cut -d" " -f1`
23 DNS2=`echo $DNS | cut -d" " -f2`
25 echo "nameserver $DNS1" > /etc/resolv.conf
26 echo "nameserver $DNS2" >> /etc/resolv.conf
31 BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) dhcpcd_up;;