[lfs] branch openrc updated: OpenRC: Make wrappers for openrc-shutdown.

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <176530967699.26760.4477985349587590431@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch openrc
in repository lfs.

The following commit(s) were added to refs/heads/openrc by this push:
     new 1e03a4fe5 OpenRC: Make wrappers for openrc-shutdown.
1e03a4fe5 is described below

commit 1e03a4fe5386deaffa06809beeb8b40429ccf71f
Author: Zeckmathederg <[email protected]>
AuthorDate: Tue Dec 9 12:49:26 2025 -0700

    OpenRC: Make wrappers for openrc-shutdown.
---
 chapter08/openrc.xml | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/chapter08/openrc.xml b/chapter08/openrc.xml
index 92e116935..9ed08aeac 100644
--- a/chapter08/openrc.xml
+++ b/chapter08/openrc.xml
@@ -88,9 +88,17 @@ meson setup --prefix=/usr       \
   ln -sv openrc-$i /sbin/$i
 done
 
-for i in {poweroff,reboot}; do
-  ln -sv openrc-shutdown /sbin/$i
-done</userinput></screen>
+cat &gt; /sbin/poweroff &lt;&lt; "EOF"
+<literal>#!/bin/sh
+/sbin/shutdown --poweroff now</literal>
+EOF
+
+cat &gt; /sbin/reboot &lt;&lt; "EOF"
+<literal>#!/bin/sh
+/sbin/shutdown --reboot now</literal>
+EOF
+
+chmod 755 /sbin/poweroff /sbin/reboot</userinput></screen>
 
   </sect2>
 
@@ -110,11 +118,11 @@ done</userinput></screen>
           openrc-init,
           openrc-run,
           openrc-shutdown,
-          poweroff (link to openrc-shutdown),
+          poweroff,
           rc-service,
           rc-sstat,
           rc-update,
-          reboot (link to openrc-shutdown),
+          reboot,
           shutdown (link to openrc-shutdown),
           start-stop-daemon, and
           supervise-daemon

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.