Before asking the user to set the date and time manually, check if we
are able to resolve freebsd.pool.ntp.org, and if so, offer to set the
date and time automatically.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 66391 Build 63274: arc lint + arc unit
Event Timeline
Comment Actions
This would have helped me a lot...
I never know what to do about ntpdate in scripts...
usr.sbin/bsdinstall/scripts/time | ||
---|---|---|
48 | How much longer will we have ntpdate? On the one hand, it's been declareed obsolete. On the other, i think we are entering the second decade of obsolescence... |
usr.sbin/bsdinstall/scripts/time | ||
---|---|---|
48 | Don't worry about it, if it ever goes away I have a replacement pretty much ready. |
usr.sbin/bsdinstall/scripts/time | ||
---|---|---|
48 | This doesn't work, the exit code is sed's, so will always succeed unless something goes wrong with sed itself. |
usr.sbin/bsdinstall/scripts/time | ||
---|---|---|
48 | jrtc4@amoracia:~$ if ! ntperr=$(ntpdate freebsd.pool.ntp.org 2>&1 | sed 's/^.*\]: //'); then echo failed; fi jrtc4@amoracia:~$ if ! ntperr=$(ntpdate freebsd.pool.ntp.org 2>&1); then echo failed; fi failed jrtc4@amoracia:~$ freebsd-version 14.2-RELEASE-p3 if you want proof (failing because I'm not root) |
usr.sbin/bsdinstall/scripts/time | ||
---|---|---|
48 | no, I don't want proof, please leave the chip on your shoulder at the door. |