Date: Mon, 19 Apr 2021 09:32:30 GMT From: Mateusz Piotrowski <0mp@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: e233d63695 - main - Use sysrc instead of echo to modify rc.conf Message-ID: <202104190932.13J9WUSQ024502@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/doc/commit/?id=e233d6369554edc1fba0b03c895c566889f038a6 commit e233d6369554edc1fba0b03c895c566889f038a6 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-04-19 09:32:15 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2021-04-19 09:32:41 +0000 Use sysrc instead of echo to modify rc.conf --- documentation/content/en/articles/remote-install/_index.adoc | 2 +- documentation/content/en/books/handbook/config/_index.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/content/en/articles/remote-install/_index.adoc b/documentation/content/en/articles/remote-install/_index.adoc index 8f72ae0cc1..bf97ed25e6 100644 --- a/documentation/content/en/articles/remote-install/_index.adoc +++ b/documentation/content/en/articles/remote-install/_index.adoc @@ -337,7 +337,7 @@ zfs_load="YES" + [source,shell] .... -# echo 'zfs_enable="YES"' >> /etc/rc.conf +# sysrc zfs_enable="YES" .... * Add additional users to the system using the man:adduser[8] tool. Do not forget to add a user to the `wheel` group so you may obtain root access after the reboot. diff --git a/documentation/content/en/books/handbook/config/_index.adoc b/documentation/content/en/books/handbook/config/_index.adoc index 364df797f9..23640b3584 100644 --- a/documentation/content/en/books/handbook/config/_index.adoc +++ b/documentation/content/en/books/handbook/config/_index.adoc @@ -509,7 +509,7 @@ If there is no DHCP server and access to the Internet is needed, manually config [source,shell] .... -# echo 'defaultrouter="your_default_router"' >> /etc/rc.conf +# sysrc defaultrouter="your_default_router" # echo 'nameserver your_DNS_server' >> /etc/resolv.conf ....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104190932.13J9WUSQ024502>