Changeset d93bdd1e for lsb-bootscripts/etc/default
- Timestamp:
- 05/21/2011 05:22:20 PM (13 years ago)
- 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.0, 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:
- ff8773d
- Parents:
- c2db087
- Location:
- lsb-bootscripts/etc/default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lsb-bootscripts/etc/default/rc
rc2db087 rd93bdd1e 9 9 # Source site specific rc configuration 10 10 . /etc/default/rc.site 11 12 # Set base directory information 13 RC_BASE="/etc" 14 15 # Location of network device scripts and config files 16 NETWORK_DEVICES="/etc/network" 11 17 12 18 # This sets default terminal options. … … 39 45 CURS_UP="\\033[1A\\033[0G" # Up one line, at the 0'th char 40 46 47 # Distro Information 48 DISTRO="Linux From Scratch" # The distro name 49 DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address 50 DISTRO_MINI="lfs" # Short name used in filenames for distro config 51 52 # Define custom colors used in messages printed to the screen 53 BRACKET="\\033[1;34m" # Blue 54 FAILURE="\\033[1;31m" # Red 55 INFO="\\033[1;36m" # Cyan 56 NORMAL="\\033[0;39m" # Grey 57 SUCCESS="\\033[1;32m" # Green 58 WARNING="\\033[1;33m" # Yellow 59 60 # Prefix boot messages for easier reading on framebuffer consoles 61 PREFIX_SUCCESS=" ${SUCCESS}*${NORMAL} " 62 PREFIX_WARNING="${WARNING}**${NORMAL} " 63 PREFIX_FAILURE="${FAILURE}***${NORMAL}" 64 41 65 # Export the environment variables so they are inherited by the scripts 42 export PATH SET_COL SET_WCOL CURS_UP BOOTLOG_ENAB 66 export RC_BASE NETWORK_DEVICES PATH SET_COL SET_WCOL CURS_UP 67 export DISTRO DISTRO_CONTACT DISTRO_MINI 68 export BRACKET FAILURE INFO NORMAL SUCCESS WARNING 69 export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE 70 71 # Interactive startup 72 dlen="29" # The total length of the distro welcome string 73 ilen="38" # The total length of the interactive message 74 welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}" 75 i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup" 76 77 # Error message displayed when a script's exit value is not zero 78 print_error_msg() 79 { 80 # ${link} and ${error_value} are defined by the rc script 81 echo -e "${FAILURE}FAILURE: You should not be reading this error message." 82 echo -e "" 83 echo -e -n "${FAILURE}It means that an unforseen error took place in" 84 echo -e -n "${INFO} ${link}" 85 echo -e "${FAILURE}," 86 echo -e "${FAILURE}which exited with a return value of ${error_value}." 87 echo -e "" 88 echo -e -n "${FAILURE}If you are able to track this error down to a bug" 89 echo -e "${FAILURE}in one of the files" 90 echo -e -n "provided by ${INFO}${DISTRO}${FAILURE}, " 91 echo -e -n "${FAILURE}please be so kind to inform us at " 92 echo -e "${INFO}${DISTRO_CONTACT}${FAILURE}.${NORMAL}" 93 echo -e "" 94 echo -e "${INFO}Press Enter to continue..." 95 echo -e "${NORMAL}" 96 $FAILURE_ACTION 97 } 43 98 44 99 # End /etc/default/rc -
lsb-bootscripts/etc/default/rc.site
rc2db087 rd93bdd1e 1 # Set base directory information2 RC_BASE="/etc"3 RC_FUNCTIONS="${RC_BASE}/init.d/lfs-functions"4 5 # Location of network device scripts and config files6 NETWORK_DEVICES="/etc/network"7 8 1 # Bootlogging (requires a tempfs mount) 9 2 BOOTLOG_ENAB="yes" … … 20 13 FAILURE_ACTION="read ENTER" 21 14 22 # Distro Information23 DISTRO="Linux From Scratch" # The distro name24 DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address25 DISTRO_MINI="lfs" # Short name used in filenames for distro config26 27 # Define custom colors used in messages printed to the screen28 BRACKET="\\033[1;34m" # Blue29 FAILURE="\\033[1;31m" # Red30 INFO="\\033[1;36m" # Cyan31 NORMAL="\\033[0;39m" # Grey32 SUCCESS="\\033[1;32m" # Green33 WARNING="\\033[1;33m" # Yellow34 35 # Prefix boot messages for easier reading on framebuffer consoles36 PREFIX_SUCCESS=" ${SUCCESS}*${NORMAL} "37 PREFIX_WARNING="${WARNING}**${NORMAL} "38 PREFIX_FAILURE="${FAILURE}***${NORMAL}"39 40 15 # Export varialbles so that they are inherited by the initscripts 41 export RC_BASE RC_FUNCTIONS NETWORK_DEVICES BOOTLOG_ENAB 42 export HOSTNAME UTC CLOCKPARAMS FAILURE_ACTION 43 export DISTRO DISTRO_CONTACT DISTRO_MINI 44 export BRACKET FAILURE INFO NORMAL SUCCESS WARNING 45 export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE 16 export BOOTLOG_ENAB HOSTNAME UTC CLOCKPARAMS FAILURE_ACTION 46 17 47 18 # Interactive startup 48 19 iprompt="yes" # Wether to display the interactive boot promp 49 20 itime="2" # The ammount of time (in seconds) to display the prompt 50 dlen="29" # The total length of the distro welcome string51 ilen="38" # The total length of the interactive message52 welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"53 i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"54 21 55 # Error message displayed when a script's exit value is not zero56 print_error_msg()57 {58 # ${link} and ${error_value} are defined by the rc script59 echo -e "${FAILURE}FAILURE: You should not be reading this error message."60 echo -e ""61 echo -e -n "${FAILURE}It means that an unforseen error took place in"62 echo -e -n "${INFO} ${link}"63 echo -e "${FAILURE},"64 echo -e "${FAILURE}which exited with a return value of ${error_value}."65 echo -e ""66 echo -e -n "${FAILURE}If you are able to track this error down to a bug"67 echo -e "${FAILURE}in one of the files"68 echo -e -n "provided by ${INFO}${DISTRO}${FAILURE}, "69 echo -e -n "${FAILURE}please be so kind to inform us at "70 echo -e "${INFO}${DISTRO_CONTACT}${FAILURE}.${NORMAL}"71 echo -e ""72 echo -e "${INFO}Press Enter to continue..."73 echo -e "${NORMAL}"74 $FAILURE_ACTION75 }76 77
Note:
See TracChangeset
for help on using the changeset viewer.