s/source/./ in init scripts

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1776 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Igor Živković 2004-02-08 00:50:23 +00:00
parent e757b72a3d
commit 369af35a2a
27 changed files with 69 additions and 65 deletions

View File

@ -50,8 +50,8 @@ are the correct settings and adjust as necessary.</para>
#!/bin/sh
# Begin /etc/sysconfig/network-devices/ifup-ipx0
source /etc/sysconfig/rc || exit
source $rc_functions || exit
. /etc/sysconfig/rc || exit
. $rc_functions || exit
echo "Setting up the IPX protocol on eth0..."
/bin/ipx_interface add eth0 802.2 &amp;&amp;
@ -64,8 +64,8 @@ cat &gt; /etc/sysconfig/network-devices/ifdown-ipx0 &lt;&lt; "EOF"</command>
#!/bin/sh
# Begin /etc/sysconfig/network-devices/ifdown-ipx0
source /etc/sysconfig/rc || exit
source $rc_functions || exit
. /etc/sysconfig/rc || exit
. $rc_functions || exit
echo "Stopping IPX on the eth0 interface..."
/bin/ipx_configure --auto_interface=off --auto_primary=off &amp;&amp;

View File

@ -32,10 +32,10 @@ and update the time each time <command>ntpd</command> is scheduled.</para>
stop symlinks:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/ntp &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/ntp
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
echo "Starting ntpd..."

View File

@ -11,7 +11,7 @@
#!/bin/sh
# Begin /etc/rc.d/init.d/portmap
source /etc/rc.d/init.d/functions
. /etc/rc.d/init.d/functions
case "$1" in
start)

View File

@ -44,9 +44,9 @@ the <filename>ifup-eth0</filename> script:</para>
<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifup-eth0 &lt;&lt; "EOF" </command>
#!/bin/sh
source /etc/sysconfig/rc || exit
source $rc_functions || exit
source $network_devices/ifconfig.eth0 || exit
. /etc/sysconfig/rc || exit
. $rc_functions || exit
. $network_devices/ifconfig.eth0 || exit
echo "Bringing up the eth0 interface..."
modprobe eth0
@ -58,9 +58,9 @@ loadproc $DHCP_PROG $DHCP_START
<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifdown-eth0 &lt;&lt; "EOF" </command>
#!/bin/sh
source /etc/sysconfig/rc || exit
source $rc_functions || exit
source $network_devices/ifconfig.eth0 || exit
. /etc/sysconfig/rc || exit
. $rc_functions || exit
. $network_devices/ifconfig.eth0 || exit
echo "Bringing down the eth0 interface..."
$DHCP_PROG $DHCP_STOP

View File

@ -29,15 +29,15 @@ following script, and start your connection manually with the
<emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/adsl &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/adsl
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
# adsl script written by DJ Lucas - dj@lucasit.com
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -60,14 +60,14 @@ shut it down.</para>
the init.d script:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/mysql &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
pid_file=/var/lib/mysql/`/bin/hostname`.pid

View File

@ -17,14 +17,14 @@ url="file:///usr/share/doc/postgresql/html/index.html"/>.</para>
<para>Create the boot script with the following: </para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/postgresql &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/postgresql
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -25,10 +25,10 @@ server.</para>
create the init.d script:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/apache &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -72,8 +72,8 @@ Group proftpd
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -28,8 +28,8 @@ situation.</para>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -14,8 +14,8 @@ class="directory">/etc/rc.d</filename>) --></para>
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
# GPM specific parts by Mark Hymers - markh@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
if [ -f /etc/sysconfig/mouse ]
then

View File

@ -33,14 +33,14 @@ create the init.d script if your
GNOME_PREFIX=/opt/gnome-&gnome-version;. The fully qualified paths can
be removed for GNOME_PREFIX=/usr:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/gdm &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/gdm
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -11,6 +11,10 @@ who wrote what.</para>
<itemizedlist>
<listitem><para>February 7th, 2004 [igor]: Changed all occurrences of
"source" in init scripts to ".", suggested by Nathan
Coulson.</para></listitem>
<listitem><para>February 7th, 2004 [igor]: Updated to
Gimp-Print-4.2.6, courtesy of Alexander E. Patrakov.</para></listitem>

View File

@ -32,8 +32,8 @@ script <filename>/etc/rc.d/init.d/alsa</filename>.</para>
# ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
# Stores mixer settings in the default location: /etc/asound.state
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -25,8 +25,8 @@ for you automatically.</para>
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
# Random script elements by Larry Lawrence
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -28,8 +28,8 @@ works, but you may want to change it to a more conventional <acronym>LFS
# Start or stop the CUPS server based upon the first argument to the script.
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case $1 in
start)

View File

@ -5,7 +5,7 @@
<!ENTITY gimp-print-config SYSTEM "gimp-print-config.xml">
<!ENTITY gimp-print-desc SYSTEM "gimp-print-desc.xml">
<!ENTITY gimp-print-version "4.2.6">
<!ENTITY gimp-print-download-http "http://twtelecom.dl.sourceforge.net/sourceforge/gimp-print/gimp-print-&gimp-print-version;.tar.gz">
<!ENTITY gimp-print-download-http "http://umn.dl.sourceforge.net/sourceforge/gimp-print/gimp-print-&gimp-print-version;.tar.gz">
<!ENTITY gimp-print-download-ftp "">
<!ENTITY gimp-print-size "4.9 MB">
<!ENTITY gimp-print-buildsize "22 MB">

View File

@ -26,8 +26,8 @@ cat &gt; /etc/rc.d/init.d/lpd &lt;&lt; "EOF"</command>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -33,8 +33,8 @@ exim boot script with the following commands:</para>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in

View File

@ -53,8 +53,8 @@ sed "s/#myhostname = host.domain.tld/myhostname = \
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in

View File

@ -32,8 +32,8 @@ want to set it higher.</para></note>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in

View File

@ -153,12 +153,12 @@ command:</para>
boot script:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/bind &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/bind
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
echo "Starting named..."

View File

@ -25,8 +25,8 @@ using the following commands.</para>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -28,8 +28,8 @@ commands:</para>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -41,8 +41,8 @@ created using the following commands:</para>
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)

View File

@ -70,12 +70,12 @@ smbpasswd -a -m win2kbox</command></userinput></screen>
<para>Create the <application>Samba</application> boot script:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/samba &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/samba
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
echo "Starting nmbd..."

View File

@ -27,12 +27,12 @@ found at <ulink url="http://www.xinetd.org"/>.</para>
<para>Create the <command>xinetd</command> boot script:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/xinetd &lt;&lt; "EOF"</command>
#!/bin/bash
#!/bin/sh
# Begin $rc_base/init.d/xinetd
# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
source /etc/sysconfig/rc
source $rc_functions
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
echo "Starting xinetd..."