aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books
diff options
context:
space:
mode:
authorBenedict Reuschling <bcr@FreeBSD.org>2018-08-17 21:25:58 +0000
committerBenedict Reuschling <bcr@FreeBSD.org>2018-08-17 21:25:58 +0000
commit86d775c974ee55fb3b8b2f9743095f53ba24683f (patch)
tree4b9957b93df114ee14b894ee0c35c973e9b58bd5 /en_US.ISO8859-1/books
parent8ffacca1e165396444c40c773a9e297d22abb5bf (diff)
downloaddoc-86d775c974ee55fb3b8b2f9743095f53ba24683f.tar.gz
doc-86d775c974ee55fb3b8b2f9743095f53ba24683f.zip
Replace two instances of
echo "foo='YES'" >> /etc/rc.conf with sysrc foo=yes which is shorter and provides additional error checking.
Notes
Notes: svn path=/head/; revision=52152
Diffstat (limited to 'en_US.ISO8859-1/books')
-rw-r--r--en_US.ISO8859-1/books/handbook/multimedia/chapter.xml2
-rw-r--r--en_US.ISO8859-1/books/handbook/security/chapter.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml
index 73083c9f2c..3351673e28 100644
--- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml
+++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml
@@ -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>
diff --git a/en_US.ISO8859-1/books/handbook/security/chapter.xml b/en_US.ISO8859-1/books/handbook/security/chapter.xml
index f85f02ceaa..8b7bb3e1fd 100644
--- a/en_US.ISO8859-1/books/handbook/security/chapter.xml
+++ b/en_US.ISO8859-1/books/handbook/security/chapter.xml
@@ -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