Replace two instances of

echo "foo='YES'" >> /etc/rc.conf

with

sysrc foo=yes

which is shorter and provides additional error checking.
This commit is contained in:
Benedict Reuschling 2018-08-17 21:25:58 +00:00
parent 8ffacca1e1
commit 86d775c974
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=52152
2 changed files with 2 additions and 2 deletions

View file

@ -1358,7 +1358,7 @@ bktr0: Pinnacle/Miro TV, Philips SECAM tuner.</programlisting>
<para>Finally, start the backend:</para>
<screen>&prompt.root; <userinput>echo 'mythbackend_enable="YES"' &gt;&gt; /etc/rc.conf</userinput>
<screen>&prompt.root; <userinput>sysrc mythbackend_enable=yes</userinput>
&prompt.root; <userinput>service mythbackend start</userinput></screen>
</sect2>
</sect1>

View file

@ -3580,7 +3580,7 @@ UWWemqWuz3lAZuORQ9KX
<screen>&prompt.root; <userinput>touch /var/account/acct</userinput>
&prompt.root; <userinput>chmod 600 /var/account/acct</userinput>
&prompt.root; <userinput>accton /var/account/acct</userinput>
&prompt.root; <userinput>echo 'accounting_enable="YES"' &gt;&gt; /etc/rc.conf</userinput></screen>
&prompt.root; <userinput>sysrc accounting_enable=yes</userinput></screen>
<para>Once enabled, accounting will begin to track information
such as <acronym>CPU</acronym> statistics and executed