Browse Source

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
OPENBSD_4_2
ckuethe 17 years ago
parent
commit
5c4449b971
2 changed files with 7 additions and 2 deletions
  1. +5
    -1
      src/etc/rc
  2. +2
    -1
      src/etc/rc.conf

+ 5
- 1
src/etc/rc View File

@ -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 # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -403,6 +403,10 @@ if [ X"${timed_flags}" != X"NO" ]; then
echo -n ' timed'; timed $timed_flags echo -n ' timed'; timed $timed_flags
fi 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 if [ X"${ntpd_flags}" != X"NO" ]; then
echo -n ' ntpd'; ntpd $ntpd_flags echo -n ' ntpd'; ntpd $ntpd_flags
fi fi


+ 2
- 1
src/etc/rc.conf View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for normal use: "-q" routed_flags=NO # for normal use: "-q"
@ -17,6 +17,7 @@ sshd_flags="" # for normal use: ""
named_flags=NO # for normal use: "" named_flags=NO # for normal use: ""
rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host] rdate_flags=NO # for normal use: [RFC868-host] or [-n RFC2030-host]
timed_flags=NO # for normal use: "" timed_flags=NO # for normal use: ""
nmeaattach_flags=NO # for normal use: "[options] cua-device"
ntpd_flags=NO # for normal use: "" ntpd_flags=NO # for normal use: ""
isakmpd_flags=NO # for normal use: "" isakmpd_flags=NO # for normal use: ""
sasyncd_flags=NO # for normal use: "" sasyncd_flags=NO # for normal use: ""


Loading…
Cancel
Save