diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-11-26 15:16:22 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2025-03-05 04:46:14 +0000 |
commit | 2fae556f6a8b10bdef22eba0d83b0880e3669496 (patch) | |
tree | 55d21bc4449e727290cc6d2a70fff0cf25975f20 /contrib/ntp/sntp | |
parent | 206ed99650cf0fbdf31d0a1d710ba9cefe48ceae (diff) |
var_run: Clean up style
Clean up style and make more consistent.
Replace test with if-then-else to make the script more legible.
Replace the call to dirname with the shell %/* operator avoiding a
fork & exec.
Reorder the test for $var_run_autosave before the test for /var/run on
tmpfs. This avoids gratuitously scanning the mount table for a tmpfs
/var/run.
Initial concept by and in discussion with:
Harry Schmalzbauer <freebsd@omnilan.de>
No functional change intended.
MFC after: 2 weeks
Differnential revision: https://reviews.freebsd.org/D47773
(cherry picked from commit ed9712f8943573136fa92a0e61c8e7c10952eeb0)
Diffstat (limited to 'contrib/ntp/sntp')
0 files changed, 0 insertions, 0 deletions