mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 13:07:50 +00:00
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
This commit is contained in:
parent
d53a9b78a1
commit
701d877e61
@ -2,10 +2,9 @@
|
||||
|
||||
* lfs/init.d/mountfs: Add '-t nosysfs' to umount command
|
||||
* lfs/init.d/mountvirtfs: remove unneeded spaces in output
|
||||
* lfs/init.d/rc: Correct double interactive prompt
|
||||
* lfs/init.d/rc: Correct double interactive prompt and set prompt defaults
|
||||
* lfs/init.d/setclock: Remove screen output from start case (udev)
|
||||
* lfs/init.d/udev{,_retry}: Restore output to screen and log
|
||||
* lfs/lib/services/init-functions: Restore DISTRO variables
|
||||
* lfs/sbin/ifup: Change "..." to ": " (not awaiting additonal output)
|
||||
|
||||
2011-11-14 Bruce Dubbs <bdubbs@linuxfromscratch.org>
|
||||
|
@ -87,6 +87,7 @@ function run()
|
||||
DISTRO=${DISTRO:-"Linux From Scratch"}
|
||||
DISTRO_CONTACT=${DISTRO_CONTACT:-"lfs-dev@linuxfromscratch.org (Registration required)"}
|
||||
DISTRO_MINI=${DISTRO_MINI:-"LFS"}
|
||||
IPROMPT=${IPROMPT:-"no"}
|
||||
|
||||
# These 3 signals will not cause our script to exit
|
||||
trap "" INT QUIT TSTP
|
||||
@ -112,11 +113,20 @@ if [ "$runlevel" == "6" -o "$runlevel" == "0" ]; then IPROMPT="no"; fi
|
||||
if [ "$runlevel" == "S" ]; then dmesg -n "${LOGLEVEL:-7}"; fi
|
||||
|
||||
if [ "${IPROMPT}" == "yes" -a "${runlevel}" == "S" ]; then
|
||||
# dcol and icol are spaces before the message to center the
|
||||
# message on screen.
|
||||
# The total length of the distro welcome string, without escape codes
|
||||
wlen=${wlen:-$(echo "Welcome to ${DISTRO}" | wc -c )}
|
||||
welcome_message=${welcome_message:-"Welcome to ${INFO}${DISTRO}${NORMAL}"}
|
||||
|
||||
# The total length of the interactive string, without escape codes
|
||||
ilen=${ilen:-$(echo "Press 'I' to enter interactive startup" | wc -c )}
|
||||
i_message=${i_message:-"Press '${FAILURE}I${NORMAL}' to enter interactive startup"}
|
||||
|
||||
|
||||
# dcol and icol are spaces before the message to center the message
|
||||
# on screen. itime is the amount of wait time for the user to press a key
|
||||
wcol=$(( ( ${COLUMNS} - ${wlen} ) / 2 ))
|
||||
icol=$(( ( ${COLUMNS} - ${ilen} ) / 2 ))
|
||||
itime=${itime:-"3"}
|
||||
|
||||
echo -e "\n\n"
|
||||
echo -e "\\033[${wcol}G${welcome_message}"
|
||||
|
@ -61,11 +61,6 @@ FAILURE="\\033[1;31m" # Failures are red
|
||||
INFO="\\033[1;36m" # Information is light cyan
|
||||
BRACKET="\\033[1;34m" # Brackets are blue
|
||||
|
||||
# Distro Information
|
||||
DISTRO="Linux From Scratch" # The distro name as displayed
|
||||
DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address
|
||||
DISTRO_MINI="LFS" # Short name used in filenames for distro config
|
||||
|
||||
# Use a colored prefix
|
||||
BMPREFIX=" "
|
||||
SUCCESS_PREFIX="${SUCCESS} * ${NORMAL}"
|
||||
|
@ -37,12 +37,12 @@
|
||||
itime="3" # The ammount of time (in seconds) to display the prompt
|
||||
|
||||
# The total length of the distro welcome string, without escape codes
|
||||
wlen=$(echo "Welcome to ${DISTRO}" | wc -c )
|
||||
welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
|
||||
#wlen=$(echo "Welcome to ${DISTRO}" | wc -c )
|
||||
#welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
|
||||
|
||||
# The total length of the interactive string, without escape codes
|
||||
ilen=$(echo "Press 'I' to enter interactive startup" | wc -c )
|
||||
i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
|
||||
#ilen=$(echo "Press 'I' to enter interactive startup" | wc -c )
|
||||
#i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
|
||||
|
||||
# Set scripts to skip the file system check on reboot
|
||||
#FASTBOOT=yes
|
||||
|
Loading…
Reference in New Issue
Block a user