mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Moved configuration of clock and hostname to rc.site
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9527 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
bd1b5bedc2
commit
dad97deb88
@ -3,6 +3,7 @@ ChangeLog
|
|||||||
20110514 - [dj]
|
20110514 - [dj]
|
||||||
* Added FAILURE_ACTION variable to rc.site for use in remote systems
|
* Added FAILURE_ACTION variable to rc.site for use in remote systems
|
||||||
where user input is not appropriate in the event of a failure
|
where user input is not appropriate in the event of a failure
|
||||||
|
* Moved configuration of clock and hostname to rc.site
|
||||||
|
|
||||||
20110424 - [dj]
|
20110424 - [dj]
|
||||||
* Sync to LFS-Bootscripts-20110424 (move new run mounts and
|
* Sync to LFS-Bootscripts-20110424 (move new run mounts and
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: checkfs
|
# Provides: checkfs
|
||||||
# Required-Start: udev swap $time
|
# Required-Start: udev swap
|
||||||
# Should-Start:
|
# Should-Start:
|
||||||
# Required-Stop:
|
# Required-Stop:
|
||||||
# Should-Stop:
|
# Should-Stop:
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
. /etc/sysconfig/network
|
|
||||||
|
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
start)
|
start)
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
# Begin /etc/init.d/setclock
|
# Begin /etc/init.d/setclock
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: $time
|
# Provides: hwclock
|
||||||
# Required-Start:
|
# Required-Start:
|
||||||
# Should-Start: modules
|
# Should-Start: modules
|
||||||
# Required-Stop:
|
# Required-Stop:
|
||||||
# Should-Stop: $syslog
|
# Should-Stop: $syslog
|
||||||
# Default-Start: S
|
# Default-Start:
|
||||||
# Default-Stop:
|
# Default-Stop:
|
||||||
# Short-Description: Stores and restores time from the hardware clock
|
# Short-Description: Stores and restores time from the hardware clock
|
||||||
# Description: On boot, system time is obtained from hwclock. The
|
# Description: On boot, system time is obtained from hwclock. The
|
||||||
@ -18,14 +18,9 @@
|
|||||||
. /lib/lsb/init-functions
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
BIN_FILE="/sbin/hwclock"
|
BIN_FILE="/sbin/hwclock"
|
||||||
CONFIGFILE="/etc/sysconfig/clock"
|
|
||||||
|
|
||||||
chk_stat
|
chk_stat
|
||||||
|
|
||||||
. "${CONFIGFILE}"
|
|
||||||
|
|
||||||
CLOCKPARAMS=
|
|
||||||
|
|
||||||
case "${UTC}" in
|
case "${UTC}" in
|
||||||
yes|true|1)
|
yes|true|1)
|
||||||
CLOCKPARAMS="${CLOCKPARAMS} --utc"
|
CLOCKPARAMS="${CLOCKPARAMS} --utc"
|
||||||
|
@ -13,6 +13,13 @@ TEMPFS_MOUNT="${RC_BASE}/init.d/boottemp"
|
|||||||
# Bootlogging (requires a tempfs mount)
|
# Bootlogging (requires a tempfs mount)
|
||||||
BOOTLOG_ENAB="yes"
|
BOOTLOG_ENAB="yes"
|
||||||
|
|
||||||
|
# Hostname
|
||||||
|
HOSTNAME=<lfs>
|
||||||
|
|
||||||
|
# System time variables
|
||||||
|
UTC=1
|
||||||
|
CLOCKPARAMS=
|
||||||
|
|
||||||
# Manual input is not appropriate on remote systems. Define what happens when
|
# Manual input is not appropriate on remote systems. Define what happens when
|
||||||
# an error is encountered that interupts the boot/shutdown proceess
|
# an error is encountered that interupts the boot/shutdown proceess
|
||||||
FAILURE_ACTION="read ENTER"
|
FAILURE_ACTION="read ENTER"
|
||||||
@ -37,7 +44,7 @@ PREFIX_FAILURE="${FAILURE}***${NORMAL}"
|
|||||||
|
|
||||||
# Export varialbles so that they are inherited by the initscripts
|
# Export varialbles so that they are inherited by the initscripts
|
||||||
export RC_BASE RC_FUNCTIONS NETWORK_DEVICES TEMPFS_MOUNT BOOTLOG_ENAB
|
export RC_BASE RC_FUNCTIONS NETWORK_DEVICES TEMPFS_MOUNT BOOTLOG_ENAB
|
||||||
export FAILURE_ACTION
|
export HOSTNAME UTC CLOCKPARAMS FAILURE_ACTION
|
||||||
export DISTRO DISTRO_CONTACT DISTRO_MINI
|
export DISTRO DISTRO_CONTACT DISTRO_MINI
|
||||||
export BRACKET FAILURE INFO NORMAL SUCCESS WARNING
|
export BRACKET FAILURE INFO NORMAL SUCCESS WARNING
|
||||||
export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE
|
export PREFIX_SUCCESS PREFIX_WARNING PREFIX_FAILURE
|
||||||
|
Loading…
Reference in New Issue
Block a user