Prevent rewriting /etc/rc.conf.local unconditionnally. Compare the new and old
authorajacoutot <ajacoutot@openbsd.org>
Mon, 8 Jul 2024 14:32:44 +0000 (14:32 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Mon, 8 Jul 2024 14:32:44 +0000 (14:32 +0000)
commit1f7b1864b987998d338ce25625eb7ceffbf37653
treeeb9c184c99676c6c2543d90964b8912bc77cfd11
parent7c99229c4632c23cb8d758e8587886cef3a61e63
Prevent rewriting /etc/rc.conf.local unconditionnally. Compare the new and old
ones and do nothing is they match.
This mean that "rcctl enable foobar" will not touch anything is foobar is
already enabled.

spotted by robert@ using Saltstack (that runs "rcctl enable ..." on a regular
basis).
ok robert@
usr.sbin/rcctl/rcctl.sh