<p><pre><code>   HWCLOCK_TZ=$(readlink &#x2F;etc&#x2F;localtime | cut -d&#x2F; -f5-)
</code></pre>
One of the improvements to BSD &#x2F;etc&#x2F;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.<p>OpenBSD also gained an rcctl command, where one could run (say) &quot;rcctl enable salt_master&quot; and it would adjust the rc.conf files to enable the salt_master service.  nosh has a shim for it.<p>* <a href="http:&#x2F;&#x2F;www.openbsd.org&#x2F;faq&#x2F;upgrade56.html#OtherChanges" rel="nofollow">http:&#x2F;&#x2F;www.openbsd.org&#x2F;faq&#x2F;upgrade56.html#OtherChanges</a><p>* <a href="http:&#x2F;&#x2F;undeadly.org&#x2F;cgi?action=article&amp;sid=20140820090351" rel="nofollow">http:&#x2F;&#x2F;undeadly.org&#x2F;cgi?action=article&amp;sid=20140820090351</a>