mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
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:
parent
e757b72a3d
commit
369af35a2a
@ -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 &&
|
||||
@ -64,8 +64,8 @@ cat > /etc/sysconfig/network-devices/ifdown-ipx0 << "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 &&
|
||||
|
@ -32,10 +32,10 @@ and update the time each time <command>ntpd</command> is scheduled.</para>
|
||||
stop symlinks:</para>
|
||||
|
||||
<screen><userinput><command>cat > /etc/rc.d/init.d/ntp << "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..."
|
||||
|
@ -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)
|
||||
|
@ -44,9 +44,9 @@ the <filename>ifup-eth0</filename> script:</para>
|
||||
<screen><userinput><command>cat > /etc/sysconfig/network-devices/ifup-eth0 << "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 > /etc/sysconfig/network-devices/ifdown-eth0 << "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
|
||||
|
@ -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 > /etc/rc.d/init.d/adsl << "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)
|
||||
|
@ -60,14 +60,14 @@ shut it down.</para>
|
||||
the init.d script:</para>
|
||||
|
||||
<screen><userinput><command>cat > /etc/rc.d/init.d/mysql << "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
|
||||
|
||||
|
@ -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 > /etc/rc.d/init.d/postgresql << "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)
|
||||
|
@ -25,10 +25,10 @@ server.</para>
|
||||
create the init.d script:</para>
|
||||
|
||||
<screen><userinput><command>cat > /etc/rc.d/init.d/apache << "EOF"</command>
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
source /etc/sysconfig/rc
|
||||
source $rc_functions
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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 > /etc/rc.d/init.d/gdm << "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)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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">
|
||||
|
@ -26,8 +26,8 @@ cat > /etc/rc.d/init.d/lpd << "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)
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -153,12 +153,12 @@ command:</para>
|
||||
boot script:</para>
|
||||
|
||||
<screen><userinput><command>cat > /etc/rc.d/init.d/bind << "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..."
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -70,12 +70,12 @@ smbpasswd -a -m win2kbox</command></userinput></screen>
|
||||
|
||||
<para>Create the <application>Samba</application> boot script:</para>
|
||||
<screen><userinput><command>cat > /etc/rc.d/init.d/samba << "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..."
|
||||
|
@ -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 > /etc/rc.d/init.d/xinetd << "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..."
|
||||
|
Loading…
Reference in New Issue
Block a user