source: bootscripts/contrib/lsb-v3/sysconfig/rc.site@ bd1b5be

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
Last change on this file since bd1b5be was bd1b5be, checked in by DJ Lucas <dj@…>, 13 years ago

Added FAILURE_ACTION variable to rc.site

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

  • Property mode set to 100644
File size: 2.7 KB
Line 
1# Set base directory information
2RC_BASE="/etc"
3RC_FUNCTIONS="${RC_BASE}/init.d/lfs-functions"
4
5# Location of network device scripts and config files
6NETWORK_DEVICES="/etc/sysconfig/network-devices"
7
8# Directory to store boot process accounting information
9# Used for boot logging and interactive flag when rootfs
10# is not writable
11TEMPFS_MOUNT="${RC_BASE}/init.d/boottemp"
12
13# Bootlogging (requires a tempfs mount)
14BOOTLOG_ENAB="yes"
15
16# Manual input is not appropriate on remote systems. Define what happens when
17# an error is encountered that interupts the boot/shutdown proceess
18FAILURE_ACTION="read ENTER"
19
20# Distro Information
21DISTRO="Linux From Scratch" # The distro name
22DISTRO_CONTACT="lfs-dev@linuxfromscratch.org" # Bug report address
23DISTRO_MINI="lfs" # Short name used in filenames for distro config
24
25# Define custom colors used in messages printed to the screen
26BRACKET="\\033[1;34m" # Blue
27FAILURE="\\033[1;31m" # Red
28INFO="\\033[1;36m" # Cyan
29NORMAL="\\033[0;39m" # Grey
30SUCCESS="\\033[1;32m" # Green
31WARNING="\\033[1;33m" # Yellow
32
33# Prefix boot messages for easier reading on framebuffer consoles
34PREFIX_SUCCESS=" ${SUCCESS}*${NORMAL} "
35PREFIX_WARNING="${WARNING}**${NORMAL} "
36PREFIX_FAILURE="${FAILURE}***${NORMAL}"
37
38# Export varialbles so that they are inherited by the initscripts
39export RC_BASE RC_FUNCTIONS NETWORK_DEVICES TEMPFS_MOUNT BOOTLOG_ENAB
40export FAILURE_ACTION
41export DISTRO DISTRO_CONTACT DISTRO_MINI
42export BRACKET FAILURE INFO NORMAL SUCCESS WARNING
43export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE
44
45# Interactive startup
46iprompt="yes" # Wether to display the interactive boot promp
47itime="2" # The ammount of time (in seconds) to display the prompt
48dlen="29" # The total length of the distro welcome string
49ilen="38" # The total length of the interactive message
50welcome_message="Welcome to ${INFO}${DISTRO}${NORMAL}"
51i_message="Press '${FAILURE}I${NORMAL}' to enter interactive startup"
52
53# Error message displayed when a script's exit value is not zero
54print_error_msg()
55{
56 # ${link} and ${error_value} are defined by the rc script
57 echo -e "${FAILURE}FAILURE: You should not be reading this error message."
58 echo -e ""
59 echo -e -n "${FAILURE}It means that an unforseen error took place in"
60 echo -e -n "${INFO} ${link}"
61 echo -e "${FAILURE},"
62 echo -e "${FAILURE}which exited with a return value of ${error_value}."
63 echo -e ""
64 echo -e -n "${FAILURE}If you are able to track this error down to a bug"
65 echo -e "${FAILURE}in one of the files"
66 echo -e -n "provided by ${INFO}${DISTRO}${FAILURE}, "
67 echo -e -n "${FAILURE}please be so kind to inform us at "
68 echo -e "${INFO}${DISTRO_CONTACT}${FAILURE}.${NORMAL}"
69 echo -e ""
70 echo -e "${INFO}Press Enter to continue..."
71 echo -e "${NORMAL}"
72 $FAILURE_ACTION
73}
74
Note: See TracBrowser for help on using the repository browser.