3 ms·
HWCLOCK_TZ=$(readlink /etc/localtime | cut -d/ -f5-) One of the improvements to BSD /etc/rc.conf{,.local} pioneered by OpenBSD 5.6 is that they are no longer s
by JdeBP 11y ago
HWCLOCK_TZ=$(readlink /etc/localtime | cut -d/ -f5-)
One of the improvements to BSD /etc/rc.conf{,.local} pioneered by OpenBSD 5.6 is that they are no longer shell scripts, but are simple lists of name=value pairs, that can thus be parsed, used, and maintained by things other than just shell script interpreters.
OpenBSD also gained an rcctl command, where one could run (say) "rcctl enable salt_master" and it would adjust the rc.conf files to enable the salt_master service. nosh has a shim for it.
* http://www.openbsd.org/faq/upgrade56.html#OtherChanges http://www.openbsd.org/faq/upgrade56.html#OtherChanges
* http://undeadly.org/cgi?action=article&sid=20140820090351 http://undeadly.org/cgi?action=article&sid=20140820090351