diff options
author | 2007-03-14 20:47:17 +0000 | |
---|---|---|
committer | 2007-03-14 20:47:17 +0000 | |
commit | a47f0da186eaa0befae39ff3bdfe5e0dcbad2d23 (patch) | |
tree | 14cf34666543c01aa1fc79da4bf6a00969aec73c | |
parent | when using low prio MX trapping, ignore hosts connecting to the low prio (diff) | |
download | wireguard-openbsd-a47f0da186eaa0befae39ff3bdfe5e0dcbad2d23.tar.xz wireguard-openbsd-a47f0da186eaa0befae39ff3bdfe5e0dcbad2d23.zip |
Allow nmeaattach to start a sensor before starting ntpd. Many modern
receivers can cold start in the time it takes the boot process to get
close to starting ntpd. Even if the gps is not ready or the fix is not
valid, at least the sensor has been created; ntpd won't have to wait
a few minutes before scanning for the sensor. This makes using GPS as
the sole source of time a bit easier.
ok deraadt
-rw-r--r-- | etc/rc | 6 | ||||
-rw-r--r-- | etc/rc.conf | 3 |
2 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.301 2007/02/27 16:24:29 beck Exp $ +# $OpenBSD: rc,v 1.302 2007/03/14 20:47:17 ckuethe Exp $ # System startup script run by init on autoboot # or after single-user. @@ -403,6 +403,10 @@ if [ X"${timed_flags}" != X"NO" ]; then echo -n ' timed'; timed $timed_flags fi +if [ X"${nmeaattach_flags}" != X"NO" -a -n "${nmeaattach_flags}" ]; then + echo -n ' nmeaattach'; nmeaattach ${nmeaattach_flags} +fi + if [ X"${ntpd_flags}" != X"NO" ]; then echo -n ' ntpd'; ntpd $ntpd_flags fi diff --git a/etc/rc.conf b/etc/rc.conf index ca2726e3610..fdc16a54466 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: rc.conf,v 1.123 2007/02/27 16:21:29 beck Exp $ +# $OpenBSD: rc.conf,v 1.124 2007/03/14 20:47:17 ckuethe Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=NO # for normal use: "-q" @@ -17,6 +17,7 @@ sshd_flags="" # for normal use: "" named_flags=NO # for normal use: "" rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host] timed_flags=NO # for normal use: "" +nmeaattach_flags=NO # for normal use: "[options] cua-device" ntpd_flags=NO # for normal use: "" isakmpd_flags=NO # for normal use: "" sasyncd_flags=NO # for normal use: "" |