head 1.21; access; symbols netbsd-10-0-RELEASE:1.21 netbsd-10-0-RC6:1.21 netbsd-10-0-RC5:1.21 netbsd-10-0-RC4:1.21 netbsd-10-0-RC3:1.21 netbsd-10-0-RC2:1.21 netbsd-10-0-RC1:1.21 netbsd-10:1.21.0.6 netbsd-10-base:1.21 netbsd-9-3-RELEASE:1.20.50.1 cjep_sun2x-base1:1.21 cjep_sun2x:1.21.0.4 cjep_sun2x-base:1.21 cjep_staticlib_x-base1:1.21 netbsd-9-2-RELEASE:1.20.50.1 cjep_staticlib_x:1.21.0.2 cjep_staticlib_x-base:1.21 netbsd-9-1-RELEASE:1.20 phil-wifi-20200421:1.20 phil-wifi-20200411:1.20 is-mlppp:1.20.0.52 is-mlppp-base:1.20 phil-wifi-20200406:1.20 netbsd-8-2-RELEASE:1.20 netbsd-9-0-RELEASE:1.20 netbsd-9-0-RC2:1.20 netbsd-9-0-RC1:1.20 phil-wifi-20191119:1.20 netbsd-9:1.20.0.50 netbsd-9-base:1.20 phil-wifi-20190609:1.20 netbsd-8-1-RELEASE:1.20 netbsd-8-1-RC1:1.20 pgoyette-compat-merge-20190127:1.20 pgoyette-compat-20190127:1.20 pgoyette-compat-20190118:1.20 pgoyette-compat-1226:1.20 pgoyette-compat-1126:1.20 pgoyette-compat-1020:1.20 pgoyette-compat-0930:1.20 pgoyette-compat-0906:1.20 netbsd-7-2-RELEASE:1.20 pgoyette-compat-0728:1.20 netbsd-8-0-RELEASE:1.20 phil-wifi:1.20.0.48 phil-wifi-base:1.20 pgoyette-compat-0625:1.20 netbsd-8-0-RC2:1.20 pgoyette-compat-0521:1.20 pgoyette-compat-0502:1.20 pgoyette-compat-0422:1.20 netbsd-8-0-RC1:1.20 pgoyette-compat-0415:1.20 pgoyette-compat-0407:1.20 pgoyette-compat-0330:1.20 pgoyette-compat-0322:1.20 pgoyette-compat-0315:1.20 netbsd-7-1-2-RELEASE:1.20 pgoyette-compat:1.20.0.46 pgoyette-compat-base:1.20 netbsd-7-1-1-RELEASE:1.20 matt-nb8-mediatek:1.20.0.44 matt-nb8-mediatek-base:1.20 perseant-stdc-iso10646:1.20.0.42 perseant-stdc-iso10646-base:1.20 netbsd-8:1.20.0.40 netbsd-8-base:1.20 prg-localcount2-base3:1.20 prg-localcount2-base2:1.20 prg-localcount2-base1:1.20 prg-localcount2:1.20.0.38 prg-localcount2-base:1.20 pgoyette-localcount-20170426:1.20 bouyer-socketcan-base1:1.20 pgoyette-localcount-20170320:1.20 netbsd-7-1:1.20.0.36 netbsd-7-1-RELEASE:1.20 netbsd-7-1-RC2:1.20 netbsd-7-nhusb-base-20170116:1.20 bouyer-socketcan:1.20.0.34 bouyer-socketcan-base:1.20 pgoyette-localcount-20170107:1.20 netbsd-7-1-RC1:1.20 pgoyette-localcount-20161104:1.20 netbsd-7-0-2-RELEASE:1.20 localcount-20160914:1.20 netbsd-7-nhusb:1.20.0.32 netbsd-7-nhusb-base:1.20 pgoyette-localcount-20160806:1.20 pgoyette-localcount-20160726:1.20 pgoyette-localcount:1.20.0.30 pgoyette-localcount-base:1.20 netbsd-7-0-1-RELEASE:1.20 netbsd-7-0:1.20.0.28 netbsd-7-0-RELEASE:1.20 netbsd-7-0-RC3:1.20 netbsd-7-0-RC2:1.20 netbsd-7-0-RC1:1.20 netbsd-5-2-3-RELEASE:1.18 netbsd-5-1-5-RELEASE:1.18 netbsd-6-0-6-RELEASE:1.20 netbsd-6-1-5-RELEASE:1.20 netbsd-7:1.20.0.26 netbsd-7-base:1.20 yamt-pagecache-base9:1.20 yamt-pagecache-tag8:1.20 netbsd-6-1-4-RELEASE:1.20 netbsd-6-0-5-RELEASE:1.20 tls-earlyentropy:1.20.0.24 tls-earlyentropy-base:1.20 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.20 riastradh-drm2-base3:1.20 netbsd-6-1-3-RELEASE:1.20 netbsd-6-0-4-RELEASE:1.20 netbsd-5-2-2-RELEASE:1.18 netbsd-5-1-4-RELEASE:1.18 netbsd-6-1-2-RELEASE:1.20 netbsd-6-0-3-RELEASE:1.20 netbsd-5-2-1-RELEASE:1.18 netbsd-5-1-3-RELEASE:1.18 netbsd-6-1-1-RELEASE:1.20 riastradh-drm2-base2:1.20 riastradh-drm2-base1:1.20 riastradh-drm2:1.20.0.16 riastradh-drm2-base:1.20 netbsd-6-1:1.20.0.22 netbsd-6-0-2-RELEASE:1.20 netbsd-6-1-RELEASE:1.20 khorben-n900:1.20.0.20 netbsd-6-1-RC4:1.20 netbsd-6-1-RC3:1.20 agc-symver:1.20.0.18 agc-symver-base:1.20 netbsd-6-1-RC2:1.20 netbsd-6-1-RC1:1.20 yamt-pagecache-base8:1.20 netbsd-5-2:1.18.0.46 netbsd-6-0-1-RELEASE:1.20 yamt-pagecache-base7:1.20 netbsd-5-2-RELEASE:1.18 netbsd-5-2-RC1:1.18 matt-nb6-plus-nbase:1.20 yamt-pagecache-base6:1.20 netbsd-6-0:1.20.0.14 netbsd-6-0-RELEASE:1.20 netbsd-6-0-RC2:1.20 tls-maxphys:1.20.0.12 tls-maxphys-base:1.20 matt-nb6-plus:1.20.0.10 matt-nb6-plus-base:1.20 netbsd-6-0-RC1:1.20 yamt-pagecache-base5:1.20 yamt-pagecache-base4:1.20 netbsd-6:1.20.0.8 netbsd-6-base:1.20 netbsd-5-1-2-RELEASE:1.18 netbsd-5-1-1-RELEASE:1.18 yamt-pagecache-base3:1.20 yamt-pagecache-base2:1.20 yamt-pagecache:1.20.0.6 yamt-pagecache-base:1.20 cherry-xenmp:1.20.0.4 cherry-xenmp-base:1.20 bouyer-quota2-nbase:1.20 bouyer-quota2:1.20.0.2 bouyer-quota2-base:1.20 matt-mips64-premerge-20101231:1.20 matt-nb5-mips64-premerge-20101231:1.18 matt-nb5-pq3:1.18.0.44 matt-nb5-pq3-base:1.18 netbsd-5-1:1.18.0.42 netbsd-5-1-RELEASE:1.18 netbsd-5-1-RC4:1.18 matt-nb5-mips64-k15:1.18 netbsd-5-1-RC3:1.18 netbsd-5-1-RC2:1.18 netbsd-5-1-RC1:1.18 netbsd-5-0-2-RELEASE:1.18 matt-nb5-mips64-premerge-20091211:1.18 matt-premerge-20091211:1.20 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.18 matt-nb4-mips64-k7-u2a-k9b:1.18 matt-nb5-mips64-u1-k1-k5:1.18 matt-nb5-mips64:1.18.0.40 netbsd-5-0-1-RELEASE:1.18 jym-xensuspend-nbase:1.18 netbsd-5-0:1.18.0.38 netbsd-5-0-RELEASE:1.18 netbsd-5-0-RC4:1.18 netbsd-5-0-RC3:1.18 netbsd-5-0-RC2:1.18 jym-xensuspend:1.18.0.36 jym-xensuspend-base:1.18 netbsd-5-0-RC1:1.18 mjf-devfs2-base2:1.18 netbsd-5:1.18.0.34 netbsd-5-base:1.18 matt-mips64-base2:1.18 matt-mips64:1.18.0.32 netbsd-4-0-1-RELEASE:1.18 wrstuden-revivesa-base-3:1.18 wrstuden-revivesa-base-2:1.18 wrstuden-fixsa-newbase:1.18 wrstuden-revivesa-base-1:1.18 yamt-pf42-base4:1.18 yamt-pf42-base3:1.18 hpcarm-cleanup-nbase:1.18 yamt-pf42-baseX:1.18 yamt-pf42-base2:1.18 wrstuden-revivesa:1.18.0.30 wrstuden-revivesa-base:1.18 yamt-pf42:1.18.0.28 yamt-pf42-base:1.18 mjf-devfs2:1.18.0.26 mjf-devfs2-base:1.18 keiichi-mipv6:1.18.0.24 keiichi-mipv6-base:1.18 mjf-devfs:1.18.0.22 mjf-devfs-base:1.18 matt-armv6-nbase:1.18 matt-armv6-prevmlocking:1.18 wrstuden-fixsa-base-1:1.18 netbsd-4-0:1.18.0.20 netbsd-4-0-RELEASE:1.18 cube-autoconf:1.18.0.18 cube-autoconf-base:1.18 netbsd-4-0-RC5:1.18 netbsd-4-0-RC4:1.18 netbsd-4-0-RC3:1.18 netbsd-4-0-RC2:1.18 netbsd-4-0-RC1:1.18 matt-armv6:1.18.0.16 matt-armv6-base:1.18 matt-mips64-base:1.18 hpcarm-cleanup:1.18.0.14 hpcarm-cleanup-base:1.18 netbsd-3-1-1-RELEASE:1.18 netbsd-3-0-3-RELEASE:1.18 wrstuden-fixsa:1.18.0.12 wrstuden-fixsa-base:1.18 abandoned-netbsd-4-base:1.18 abandoned-netbsd-4:1.18.0.6 netbsd-3-1:1.18.0.8 netbsd-3-1-RELEASE:1.18 netbsd-3-0-2-RELEASE:1.18 netbsd-3-1-RC4:1.18 netbsd-3-1-RC3:1.18 netbsd-3-1-RC2:1.18 netbsd-3-1-RC1:1.18 netbsd-4:1.18.0.10 netbsd-4-base:1.18 netbsd-3-0-1-RELEASE:1.18 netbsd-3-0:1.18.0.4 netbsd-3-0-RELEASE:1.18 netbsd-3-0-RC6:1.18 netbsd-3-0-RC5:1.18 netbsd-3-0-RC4:1.18 netbsd-3-0-RC3:1.18 netbsd-3-0-RC2:1.18 netbsd-3-0-RC1:1.18 netbsd-2-0-3-RELEASE:1.15 netbsd-2-1:1.15.0.6 netbsd-2-1-RELEASE:1.15 netbsd-2-1-RC6:1.15 netbsd-2-1-RC5:1.15 netbsd-2-1-RC4:1.15 netbsd-2-1-RC3:1.15 netbsd-2-1-RC2:1.15 netbsd-2-1-RC1:1.15 netbsd-2-0-2-RELEASE:1.15 netbsd-3:1.18.0.2 netbsd-3-base:1.18 netbsd-2-0-1-RELEASE:1.15 netbsd-2:1.15.0.4 netbsd-2-base:1.15 netbsd-2-0-RELEASE:1.15 netbsd-2-0-RC5:1.15 netbsd-2-0-RC4:1.15 netbsd-2-0-RC3:1.15 netbsd-2-0-RC2:1.15 netbsd-2-0-RC1:1.15 netbsd-2-0:1.15.0.2 netbsd-2-0-base:1.15 netbsd-1-6-PATCH002-RELEASE:1.8 netbsd-1-6-PATCH002:1.8 netbsd-1-6-PATCH002-RC4:1.8 netbsd-1-6-PATCH002-RC3:1.8 netbsd-1-6-PATCH002-RC2:1.8 netbsd-1-6-PATCH002-RC1:1.8 netbsd-1-6-PATCH001:1.8 netbsd-1-6-PATCH001-RELEASE:1.8 netbsd-1-6-PATCH001-RC3:1.8 netbsd-1-6-PATCH001-RC2:1.8 netbsd-1-6-PATCH001-RC1:1.8 fvdl_fs64_base:1.9 netbsd-1-6-RELEASE:1.8 netbsd-1-6-RC3:1.8 netbsd-1-6-RC2:1.8 netbsd-1-6-RC1:1.8 netbsd-1-6:1.8.0.2 netbsd-1-6-base:1.8 netbsd-1-5-PATCH003:1.3.4.3 netbsd-1-5-PATCH002:1.3.4.3 netbsd-1-5-PATCH001:1.3.4.3 netbsd-1-5-RELEASE:1.3.4.3 netbsd-1-5-BETA2:1.3.4.3 netbsd-1-5-BETA:1.3.4.3 netbsd-1-5-ALPHA2:1.3.4.1 netbsd-1-5:1.3.0.4 netbsd-1-5-base:1.3 minoura-xpg4dl:1.3.0.2 minoura-xpg4dl-base:1.3 rc-d-2000-03-10:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.21 date 2020.12.25.13.42.02; author martin; state Exp; branches; next 1.20; commitid fz9simhlOlcYZ7BC; 1.20 date 2009.08.03.18.43.48; author perry; state Exp; branches 1.20.40.1 1.20.50.1; next 1.19; 1.19 date 2009.08.03.17.45.48; author perry; state Exp; branches; next 1.18; 1.18 date 2005.03.15.12.06.12; author lukem; state Exp; branches; next 1.17; 1.17 date 2004.10.11.15.00.51; author christos; state Exp; branches; next 1.16; 1.16 date 2004.08.13.18.08.03; author mycroft; state Exp; branches; next 1.15; 1.15 date 2003.12.04.18.28.54; author drochner; state Exp; branches; next 1.14; 1.14 date 2003.10.29.19.00.14; author fredb; state Exp; branches; next 1.13; 1.13 date 2003.10.20.16.09.15; author fredb; state Exp; branches; next 1.12; 1.12 date 2003.10.19.13.31.28; author fredb; state Exp; branches; next 1.11; 1.11 date 2003.10.19.13.23.57; author fredb; state Exp; branches; next 1.10; 1.10 date 2003.06.27.07.22.36; author lukem; state Exp; branches; next 1.9; 1.9 date 2002.07.19.03.22.09; author bad; state Exp; branches; next 1.8; 1.8 date 2002.03.22.04.16.39; author lukem; state Exp; branches; next 1.7; 1.7 date 2002.01.31.01.26.06; author lukem; state Exp; branches; next 1.6; 1.6 date 2000.09.19.13.04.39; author lukem; state Exp; branches; next 1.5; 1.5 date 2000.08.21.14.48.39; author abs; state Exp; branches; next 1.4; 1.4 date 2000.07.26.00.11.49; author lukem; state Exp; branches; next 1.3; 1.3 date 2000.05.13.08.45.07; author lukem; state Exp; branches 1.3.4.1; next 1.2; 1.2 date 2000.03.11.20.10.21; author veego; state Exp; branches; next 1.1; 1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches 1.1.1.1; next ; 1.20.40.1 date 2020.12.28.16.02.33; author snj; state Exp; branches; next ; commitid GfuP9cuOU2gnGwBC; 1.20.50.1 date 2020.12.28.16.00.19; author snj; state Exp; branches; next ; commitid xQfL3PckNY9tFwBC; 1.3.4.1 date 2000.08.09.19.09.44; author lukem; state Exp; branches; next 1.3.4.2; 1.3.4.2 date 2000.08.21.15.02.50; author abs; state Exp; branches; next 1.3.4.3; 1.3.4.3 date 2000.10.02.01.09.51; author lukem; state Exp; branches; next ; 1.1.1.1 date 2000.03.10.11.53.24; author lukem; state Exp; branches; next ; desc @@ 1.21 log @Adjust to "pool" usage in our standard ntp.conf, pointed out by Connor McLaughlan. @ text @#!/bin/sh # # $NetBSD: ntpdate,v 1.20 2009/08/03 18:43:48 perry Exp $ # # PROVIDE: ntpdate # REQUIRE: NETWORKING mountcritremote syslogd named # BEFORE: ntpd $_rc_subr_loaded . /etc/rc.subr name="ntpdate" rcvar=$name command="/usr/sbin/${name}" start_cmd="ntpdate_start" stop_cmd=":" ntpdate_start() { if [ -z "$ntpdate_hosts" ]; then ntpdate_hosts=$(awk ' /^#/ { next } /^(server|peer)[ \t]*127.127/ { next } /^(server|peer|pool)/ { if ($2 ~ /^-[46]/) print $3 else print $2 } '