]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use append_conf return value.
authorRoy Marples <roy@marples.name>
Wed, 13 Aug 2008 13:00:20 +0000 (13:00 +0000)
committerRoy Marples <roy@marples.name>
Wed, 13 Aug 2008 13:00:20 +0000 (13:00 +0000)
dhcpcd-hooks/50-ntp.conf

index 78c5147cde1e5b7c27f8fe065ba13d07eb68c677..7528de74b2b7206970a4d80f4ea155ae2e0feed2 100644 (file)
@@ -21,7 +21,7 @@ do_ntp_conf()
                        conf="${conf:+\n}server ${x}"
                done
                append_conf /etc/ntp.conf "${conf}"
-               added=0
+               added=$?
        fi
        if [ ${cleaned} -eq 0 -o ${added} -eq 0 ]; then
                [ -n "${ntpd_restart_cmd}" ] && ${ntpd_restart_cmd}