]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't assume comments start with #
authorRoy Marples <roy@marples.name>
Tue, 12 Aug 2008 20:44:42 +0000 (20:44 +0000)
committerRoy Marples <roy@marples.name>
Tue, 12 Aug 2008 20:44:42 +0000 (20:44 +0000)
dhcpcd-hooks/20-resolv.conf
dhcpcd-hooks/50-ntp.conf
dhcpcd-hooks/50-yp.conf
dhcpcd-run-hooks.in

index 437c116778c4f2a861e2b6a3a7f7d08306758cc3..2cd2939c76662e027074967b7ba90b748fd39c4b 100644 (file)
@@ -8,7 +8,7 @@ make_resolv_conf()
                -z "${new_domain_search}" ]; then
                return 0
        fi
-       local x= conf="${signature}\n"
+       local x= conf="${signature}\n"
        if [ -n "${new_domain_search}" ]; then
                conf="${conf}search ${new_domain_search}\n"
        elif [ -n "${new_domain_name}" ]; then
index 81faf22e70da33d9a90de71bdc30e74acc459ed5..2b3e40e4a7c08fe9db1ca1b8d1df9b29b6229c8e 100644 (file)
@@ -14,7 +14,7 @@ make_ntp_conf()
 {
        [ -z "${new_ntp_servers}" ] && return 0
        local cf=/etc/ntp.conf."${interface}" x=
-       echo "${signature}" > "${cf}"
+       echo "${signature}" > "${cf}"
        echo "restrict default noquery notrust nomodify" >> "${cf}"
        echo "restrict 127.0.0.1" >> "${cf}"
        for x in ${new_ntp_servers}; do
index 603f267b275ffb1ccbff0906f68db96524c6bd1e..25b40170f54fce8c55e3cd516560b50fce8f2cb9 100644 (file)
@@ -10,7 +10,7 @@ make_yp_conf()
 {
        [ -z "${new_nis_domain}" -a -z "${new_nis_servers}" ] && return 0
        local cf=/etc/yp.conf."${interface}" prefix= x= pid=
-       echo "${signature}" > "${cf}"
+       echo "${signature}" > "${cf}"
        if [ -n "${new_nis_domain}" ]; then
                domainname "${new_nis_domain}"
                if [ -n "${new_nis_servers}" ]; then
index a995da314f401408e1b3e9960f88bfef27557aef..a4a55e27503970c2ec6c07d60b454cae7beee71b 100644 (file)
@@ -2,7 +2,7 @@
 # dhcpcd client configuration script 
 
 # Handy functions for our hooks to use
-signature="Generated by dhcpcd for ${interface}"
+signature="Generated by dhcpcd for ${interface}"
 save_conf()
 {
        if [ -f "$1" ]; then