]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r335575, r335786
authorian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Jul 2018 14:12:09 +0000 (14:12 +0000)
committerian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 4 Jul 2018 14:12:09 +0000 (14:12 +0000)
commita4efd6824a92258f46903c886e89e1b342169570
tree8e4bbe6be2cd9e2bad712cb3a30f320e0d028b83
parent2c9cc6073c5dbeb765e794623d5a84d7503ae928
MFC r335575, r335786

r335575:
Use 'mv -f' in rc.d/ntpd to avoid spuriously halting the boot.

The final 'mv' to install a fetched leap-list file can fail (due to a
readonly fs, or schg flags, for example), and that leads to mv(1)
prompting the user, stopping the boot process.  Instead, use mv -f
to supress the prompting, and if verbose mode is on, emit a warning
that the existing file cannot be replaced.

PR: 219255

r335786:
Rename variable ntp_tmp_leapfile to have a leading underbar, to distinguish
it from variables with similar names which are set in rc.conf.  This will
make more sense as the script grows more similar-name local variables in
some upcoming changes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@335952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/rc.d/ntpd