Changeset b5ea3492 for connect/other


Ignore:
Timestamp:
03/21/2004 07:27:22 PM (20 years ago)
Author:
Tushar Teredesai <tushar@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.0, 6.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, v5_1, v5_1-pre1, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
cc265e51
Parents:
f53f1b3c
Message:

The march to lfs-bootscripts begins

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1906 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • connect/other/pppoe/pppoe-config.xml

    rf53f1b3c rb5ea3492  
    2626<command>adsl-start</command> script.</para>
    2727
    28 <para>Use the following commands to create the
    29 <emphasis>optional</emphasis> <filename>adsl</filename> bootscript:</para>
     28<para><emphasis>Optionaly</emphasis> install the
     29<filename>/etc/sysconfig/network-devices/services/pppoe</filename> service
     30script included with the <xref linkend="intro-important-bootscripts"/>
     31package.</para>
    3032
    31 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/adsl &lt;&lt; "EOF"</command>
    32 #!/bin/sh
    33 # Begin $rc_base/init.d/adsl
     33<screen><userinput><command>make install-service-pppoe</command></userinput></screen>
    3434
    35 # Based on sysklogd script from LFS-3.1 and earlier.
    36 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    37 # adsl script written by DJ Lucas  - dj@lucasit.com
     35<para>Now create the config file for use with the <filename>pppoe</filename>
     36service script:</para>
    3837
    39 . /etc/sysconfig/rc
    40 . $rc_functions
    41 
    42 case "$1" in
    43         start)
    44                 echo "Bringing up the ADSL interface..."
    45                 /usr/sbin/adsl-start
    46                 evaluate_retval
    47                 ;;
    48 
    49         stop)
    50                 echo "Bringing down the ADSL interface..."
    51                 /usr/sbin/adsl-stop
    52                 evaluate_retval
    53                 ;;
    54 
    55         restart)
    56                 $0 stop
    57                 sleep 1
    58                 $0 start
    59                 ;;
    60 
    61         status)
    62                 /usr/sbin/adsl-status
    63                 ;;
    64 
    65         *)
    66                 echo "Usage: $0 {start|stop|restart|status}"
    67                 exit 1
    68                 ;;
    69 esac
    70 
    71 # End $rc_base/init.d/adsl
    72 <command>EOF
    73 chmod 755 /etc/rc.d/init.d/adsl</command></userinput></screen>
    74 
    75 <para>Now create the necessary symlinks:</para>
    76 <screen><userinput><command>ln -sf ../init.d/adsl /etc/rc.d/rc0.d/K49adsl &amp;&amp;
    77 ln -sf ../init.d/adsl /etc/rc.d/rc1.d/K49adsl &amp;&amp;
    78 ln -sf ../init.d/adsl /etc/rc.d/rc2.d/K49adsl &amp;&amp;
    79 ln -sf ../init.d/adsl /etc/rc.d/rc3.d/S24adsl &amp;&amp;
    80 ln -sf ../init.d/adsl /etc/rc.d/rc4.d/S24adsl &amp;&amp;
    81 ln -sf ../init.d/adsl /etc/rc.d/rc5.d/S24adsl &amp;&amp;
    82 ln -sf ../init.d/adsl /etc/rc.d/rc6.d/K49adsl</command></userinput></screen>
     38<screen><userinput><command>cat &gt; /etc/sysconfig/network-devices/ifconfig.pppoe &lt;&lt; "EOF"</command>
     39ONBOOT=yes
     40SERVICE=pppoe
     41<command>EOF</command></userinput></screen>
    8342
    8443<para>Also, If you had previously configured the network interface that will now
    8544use <acronym>PPPoE</acronym>, you should remove the interface configuration
    8645files for that interface:
    87 <filename>/etc/sysconfig/network-devices/if{up,down,config}-ehtx
     46<filename>/etc/sysconfig/network-devices/ifconfig.eth&lt;X&gt;
    8847</filename>.</para>
    8948
Note: See TracChangeset for help on using the changeset viewer.