Ignore:
Timestamp:
03/22/2004 07:42:22 AM (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:
15995a1
Parents:
cc265e51
Message:

First batch of lfs-bootscripts

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/config/random.xml

    rcc265e51 r40d91bde  
    1414at startup may always be the same.  In order to counteract this effect,
    1515you should carry the entropy pool information across your shut-downs and
    16 start-ups. The following init.d script and links will perform this function
    17 for you automatically.</para>
     16start-ups.</para>
    1817
    19 <screen><userinput><command>cat &gt; /etc/rc.d/init.d/random &lt;&lt; "EOF"
    20 </command>
    21 #!/bin/sh
    22 # Begin $rc_base/init.d/random
    23 
    24 # Based on sysklogd script from LFS-3.1 and earlier.
    25 # Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
    26 # Random script elements by Larry Lawrence
    27 
    28 . /etc/sysconfig/rc
    29 . $rc_functions
    30 
    31 case "$1" in
    32         start)
    33                 echo "Initializing kernel random number generator..."
    34                 if [ -f /var/tmp/random-seed ]; then
    35                         cat /var/tmp/random-seed >/dev/urandom
    36                 fi
    37                 dd if=/dev/urandom of=/var/tmp/random-seed count=1 &amp;>/dev/null
    38                 evaluate_retval
    39                 ;;
    40                
    41         stop)
    42                 echo "Saving random seed..."
    43                 dd if=/dev/urandom of=/var/tmp/random-seed count=1 &amp;>/dev/null
    44                 evaluate_retval
    45                 ;;
    46 
    47         *)
    48                 echo "Usage: $0 {start|stop}"
    49                 exit 1
    50                 ;;
    51 esac
    52 
    53 # End $rc_base/init.d/random
    54 <command>EOF
    55 chmod 755 /etc/rc.d/init.d/random</command></userinput></screen>
    56 
    57 <para>Create the symbolic links to this file in the relevant
    58 <filename class="directory">rc.d</filename> directories
    59 with the following commands:</para>
    60 <screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
    61 ln -sf ../init.d/random ../rc0.d/K45random &amp;&amp;
    62 ln -sf ../init.d/random ../rc2.d/S25random &amp;&amp;
    63 ln -sf ../init.d/random ../rc3.d/S25random &amp;&amp;
    64 ln -sf ../init.d/random ../rc4.d/S25random &amp;&amp;
    65 ln -sf ../init.d/random ../rc5.d/S25random &amp;&amp;
    66 ln -sf ../init.d/random ../rc6.d/K45random</command></userinput></screen>
    67 
     18<para>Install the <filename>/etc/rc.d/init.d/random</filename>
     19init script included with the
     20<xref linkend="intro-important-bootscripts"/> package.</para>
     21                                                                                                               
     22<screen><userinput><command>make install-random</command></userinput></screen>
    6823
    6924</sect1>
Note: See TracChangeset for help on using the changeset viewer.