Home | History | Annotate | Download | only in dhcpcd-hooks

Lines Matching refs:conf

1 # Generate /etc/resolv.conf
3 # We can merge other dhcpcd resolv.conf files into one like resolvconf,
9 resolv_conf_dir="$state_dir/resolv.conf"
13 local cf="$state_dir/resolv.conf.$interface"
19 # Build the resolv.conf
49 # Assemble resolv.conf using our head and tail files
53 if [ -f /etc/resolv.conf.head ]; then
54 cat /etc/resolv.conf.head >> "$cf"
56 echo "# /etc/resolv.conf.head can replace this line" >> "$cf"
59 if [ -f /etc/resolv.conf.tail ]; then
60 cat /etc/resolv.conf.tail >> "$cf"
62 echo "# /etc/resolv.conf.tail can replace this line" >> "$cf"
64 cat "$cf" > /etc/resolv.conf
65 chmod 644 /etc/resolv.conf
71 local x= conf="$signature\n"
84 conf="${conf}domain $new_domain_name\n"
91 conf="${conf}search $new_domain_search\n"
94 conf="${conf}nameserver $x\n"
98 printf "$conf" | resolvconf -a "$interface"
106 printf "$conf" > "$resolv_conf_dir/$interface"