Changeset 701d877e for bootscripts


Ignore:
Timestamp:
11/28/2011 09:05:32 AM (12 years ago)
Author:
DJ Lucas <dj@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
7505caa
Parents:
d53a9b7
Message:

Revert previous change to init-functions and set defaults for interactive prompt in rc

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9675 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
bootscripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/ChangeLog

    rd53a9b7 r701d877e  
    33   * lfs/init.d/mountfs: Add '-t nosysfs' to umount command
    44   * lfs/init.d/mountvirtfs: remove unneeded spaces in output
    5    * lfs/init.d/rc: Correct double interactive prompt
     5   * lfs/init.d/rc: Correct double interactive prompt and set prompt defaults
    66   * lfs/init.d/setclock: Remove screen output from start case (udev)
    77   * lfs/init.d/udev{,_retry}:  Restore output to screen and log
    8    * lfs/lib/services/init-functions: Restore DISTRO variables
    98   * lfs/sbin/ifup: Change "..." to ": " (not awaiting additonal output)
    109
  • bootscripts/lfs/init.d/rc

    rd53a9b7 r701d877e  
    8888DISTRO_CONTACT=${DISTRO_CONTACT:-"lfs-dev@linuxfromscratch.org (Registration required)"}
    8989DISTRO_MINI=${DISTRO_MINI:-"LFS"}
     90IPROMPT=${IPROMPT:-"no"}
    9091
    9192# These 3 signals will not cause our script to exit
     
    113114
    114115if [ "${IPROMPT}" == "yes" -a "${runlevel}" == "S" ]; then
    115    # dcol and icol are spaces before the message to center the
    116    # message on screen.
    117 
     116   # The total length of the distro welcome string, without escape codes
     117   wlen=${wlen:-$(echo "Welcome to ${DISTRO}" | wc -c )}
     118   welcome_message=${welcome_message:-"Welcome to ${INFO}${DISTRO}${NORMAL}"}
     119
     120   # The total length of the interactive string, without escape codes
     121   ilen=${ilen:-$(echo "Press 'I' to enter interactive startup" | wc -c )}
     122   i_message=${i_message:-"Press '${FAILURE}I${NORMAL}' to enter interactive startup"}
     123
     124
     125   # dcol and icol are spaces before the message to center the message
     126   # on screen. itime is the amount of wait time for the user to press a key
    118127   wcol=$(( ( ${COLUMNS} - ${wlen} ) / 2 ))
    119128   icol=$(( ( ${COLUMNS} - ${ilen} ) / 2 ))
     129   itime=${itime:-"3"}
    120130
    121131   echo -e "\n\n"
  • bootscripts/lfs/lib/services/init-functions

    rd53a9b7 r701d877e  
    6262BRACKET="\\033[1;34m"        # Brackets are blue
    6363
    64 # Distro Information
    65 DISTRO="Linux From Scratch" # The distro name as displayed
    66 DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address
    67 DISTRO_MINI="LFS" # Short name used in filenames for distro config
    68 
    6964# Use a colored prefix
    7065BMPREFIX="     "
  • bootscripts/lfs/sysconfig/rc.site

    rd53a9b7 r701d877e  
    3838
    3939# The total length of the distro welcome string, without escape codes
    40 wlen=$(echo "Welcome to ${DISTRO}" | wc -c )
    41 welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
     40#wlen=$(echo "Welcome to ${DISTRO}" | wc -c )
     41#welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
    4242
    4343# The total length of the interactive string, without escape codes
    44 ilen=$(echo "Press 'I' to enter interactive startup" | wc -c )
    45 i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
     44#ilen=$(echo "Press 'I' to enter interactive startup" | wc -c )
     45#i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
    4646
    4747# Set scripts to skip the file system check on reboot
Note: See TracChangeset for help on using the changeset viewer.