Hi HN, I've been working on this for a while and I was looking for some feedback on it. I've been using it on my laptop, servers, etc. without issues for a few months.
<p><pre><code> #!/bin/bash
#!/bin/bash
#!/bin/bash
</code></pre>
One of the major improvements to System 5 rc on Linux in the past couple of decades came not from adjusting configuration mechanisms (e.g. r2d2, file-rc) or helper script function libraries. It came from the simple realization that the Bourne Again shell was a quite heavyweight choice for running a lot of non-interactive scripts.<p>* <a href="https://wiki.ubuntu.com/DashAsBinSh" rel="nofollow">https://wiki.ubuntu.com/DashAsBinSh</a><p>* <a href="https://wiki.debian.org/BootProcessSpeedup#Using_a_faster_system_shell" rel="nofollow">https://wiki.debian.org/BootProcessSpeedup#Using_a_faster_sy...</a><p>* <a href="http://initscripts-ng.alioth.debian.org/soc2006-bootsystem/bootcharts.html" rel="nofollow">http://initscripts-ng.alioth.debian.org/soc2006-bootsystem/b...</a>
<p><pre><code> HWCLOCK_TZ=$(readlink /etc/localtime | cut -d/ -f5-)
</code></pre>
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.<p>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.<p>* <a href="http://www.openbsd.org/faq/upgrade56.html#OtherChanges" rel="nofollow">http://www.openbsd.org/faq/upgrade56.html#OtherChanges</a><p>* <a href="http://undeadly.org/cgi?action=article&sid=20140820090351" rel="nofollow">http://undeadly.org/cgi?action=article&sid=20140820090351</a>