Author: bdubbs
Date: Fri Apr 4 13:15:34 2014
New Revision: 10523
Log:
Move set-sysv and set-systemd to /usr/sbin
Modified:
trunk/BOOK/chapter07/introduction.xml
Modified: trunk/BOOK/chapter07/introduction.xml
==============================================================================
--- trunk/BOOK/chapter07/introduction.xml Fri Apr 4 09:32:49 2014
(r10522)
+++ trunk/BOOK/chapter07/introduction.xml Fri Apr 4 13:15:34 2014
(r10523)
@@ -175,7 +175,7 @@
ensure the files that are needed by the system have the correct names.
The following scripts do that.</para>
-<screen><userinput remap="install">cat > /usr/local/sbin/set-systemd
<< "EOF"
+<screen><userinput remap="install">cat > /usr/sbin/set-systemd <<
"EOF"
#! /bin/bash
ln -svfn init-systemd /sbin/init
@@ -189,9 +189,11 @@
echo "Now reboot with /sbin/reboot-sysv"
EOF
-chmod 0744 /usr/local/sbin/set-systemd
+chmod 0744 /usr/sbin/set-systemd
+
+cat > /usr/sbin/set-sysv << "EOF"
+#! /bin/bash
-cat > /usr/local/sbin/set-sysv << "EOF"
ln -sfvn init-sysv /sbin/init
ln -svfn init.d-sysv /etc/init.d
@@ -203,11 +205,11 @@
echo "Now reboot with /sbin/reboot-systemd"
EOF
-chmod 0744 /usr/local/sbin/set-sysv</userinput></screen>
+chmod 0744 /usr/sbin/set-sysv</userinput></screen>
<para>Now set the desired boot system. The default is System V:</para>
-<screen><userinput
remap="install">/usr/local/sbin/set-sysv</userinput></screen>
+<screen><userinput remap="install">/usr/sbin/set-sysv</userinput></screen>
<para>Changing the boot system can be done at any time by running the
appropriate script above and rebooting.</para>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page