Replace two instances of

echo "foo='bar'" >> /boot/loader.conf

with

sysrc -f /boot/loader.conf foo=bar

which is easier to type and provides some error checking through sysrc.
This commit is contained in:
Benedict Reuschling 2018-08-17 21:34:10 +00:00
parent 86d775c974
commit 25078f245d
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52153
2 changed files with 2 additions and 2 deletions

View file

@ -244,7 +244,7 @@ Done.</screen>
adding a line to
<filename>/boot/loader.conf</filename>:</para>
<screen>&prompt.root; <userinput>echo 'geom_stripe_load="YES"' &gt;&gt; /boot/loader.conf</userinput></screen>
<screen>&prompt.root; <userinput>sysrc -f /boot/loader.conf geom_stripe_load=YES</userinput></screen>
</step>
</procedure>
</sect1>

View file

@ -1789,7 +1789,7 @@ raisechar=^^</programlisting>
console, issue the following command as the
superuser:</para>
<screen>&prompt.root; echo 'console="comconsole"' &gt;&gt; /boot/loader.conf</screen>
<screen>&prompt.root; sysrc -f /boot/loader.conf console=comconsole</screen>
</step>
<step>