5 if have_daemon adsuck
; then
6 # copy the resolv.conf generated by dhcpcd to the adsuck directory
7 cp -f /etc
/resolv.conf
/var
/adsuck
/
10 if ! ck_daemon adsuck
; then
11 # create a new resolv.conf containing one entry pointing to the loopback device
12 echo "nameserver 127.0.0.1" > /etc
/resolv.conf
13 # make adsuck reload the config to make sure the new resolv.conf file is read
14 /etc
/rc.d
/adsuck reload