fixed paths and removed unneeded X-LFS-Default lines.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9259 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
DJ Lucas 2010-04-28 03:46:23 +00:00
parent 01923b23ac
commit ec45bd6dd9
20 changed files with 21 additions and 49 deletions

View File

@ -1,4 +1,8 @@
ChangeLog ChangeLog
20100427 - [dj] * Removed unneeded X-LFS-Default* lines.
* Corrected udev_retry script for new udev.
* Corrected path of syslogd and klogd in sysklogd script.
20090325 - [dj] * Corrected serveral echo commands missing -e - Thanks to 20090325 - [dj] * Corrected serveral echo commands missing -e - Thanks to
Michael Tremer at IPFire for the corrections. Michael Tremer at IPFire for the corrections.

View File

@ -1,7 +1,7 @@
LSB-V3 README LSB-V3 README
The scripts contianed in this directory are a complete rewrite of the The scripts contianed in this directory are a complete rewrite of the
boot scripts from LFS-6.1 (updated for LFS-SVN about 2008-05-31). As is boot scripts from LFS-6.1 (updated for LFS-SVN about 2010-04-28). As is
usually the case with a rewrite, there have been many changes: usually the case with a rewrite, there have been many changes:
AS OF 20080907, THESE SCRIPTS REQUIRE THE NEW initd-tools PACKAGE. AS OF 20080907, THESE SCRIPTS REQUIRE THE NEW initd-tools PACKAGE.
@ -86,6 +86,10 @@ the best of my ability, but there probably are some hidden bugs that will
come to lite when used more frequently. Please give me a shout _when_ you come to lite when used more frequently. Please give me a shout _when_ you
find them. find them.
The sysctl script runs much earlier in the boot process, as a result, it
negates the need for the consolelog script. Set 'kernel.printk = X' in your
/etc/sysctl.conf file for equivalent functionality.
Thanks. Thanks.
-- DJ Lucas -- DJ Lucas

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: Checks local filesystems before mounting. # Short-Description: Checks local filesystems before mounting.
# Description: Checks local filesystmes before mounting. # Description: Checks local filesystmes before mounting.
# X-LFS-Default-Start: S30
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -13,8 +13,6 @@
# Description: Cleans temporary directories /var/run, /var/lock, and # Description: Cleans temporary directories /var/run, /var/lock, and
# /tmp. cleanfs also creates /var/run/utmp and any files # /tmp. cleanfs also creates /var/run/utmp and any files
# defined in /etc/sysconfig/createfiles. # defined in /etc/sysconfig/createfiles.
# X-LFS-Default-Start: S50
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Sets up a localised console. # Short-Description: Sets up a localised console.
# Description: Sets up fonts and language settings for the user's # Description: Sets up fonts and language settings for the user's
# local as defined by /etc/sysconfig/console. # local as defined by /etc/sysconfig/console.
# X-LFS-Default-Start: S70
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: Halts the system. # Short-Description: Halts the system.
# Description: Halts the System. # Description: Halts the System.
# X-LFS-Default-Start:
# X-LFS-Default-Stop: S99
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Starts the local network. # Short-Description: Starts the local network.
# Description: Sets the hostname of the machine and starts the # Description: Sets the hostname of the machine and starts the
# loopback interface. # loopback interface.
# X-LFS-Default-Start: S80
# X-LFS-Default-Stop: S90
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: Loads required modules. # Short-Description: Loads required modules.
# Description: Loads modules listed in /etc/sysconfig/modules. # Description: Loads modules listed in /etc/sysconfig/modules.
# X-LFS-Default-Start: S10
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -14,8 +14,6 @@
# remaining local filesystems defined in /etc/fstab on # remaining local filesystems defined in /etc/fstab on
# start. Remounts root filesystem read-only and unmounts # start. Remounts root filesystem read-only and unmounts
# remaining filesystems on stop. # remaining filesystems on stop.
# X-LFS-Default-Start: S40
# X-LFS-Default-Stop: S70
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: Mounts /sys and /proc virtual (kernel) filesystems. # Short-Description: Mounts /sys and /proc virtual (kernel) filesystems.
# Description: Mounts /sys and /proc virtual (kernel) filesystems. # Description: Mounts /sys and /proc virtual (kernel) filesystems.
# X-LFS-Default-Start: S00
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: 0 1 2 6 # Default-Stop: 0 1 2 6
# Short-Description: Starts and configures network interfaces. # Short-Description: Starts and configures network interfaces.
# Description: Starts and configures network interfaces. # Description: Starts and configures network interfaces.
# X-LFS-Default-Start: S20
# X-LFS-Default-Stop: K80
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: Reboots the system. # Short-Description: Reboots the system.
# Description: Reboots the System. # Description: Reboots the System.
# X-LFS-Default-Start:
# X-LFS-Default-Stop: S99
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -11,8 +11,6 @@
# Default-Stop: 0 6 # Default-Stop: 0 6
# Short-Description: Attempts to kill remaining processes. # Short-Description: Attempts to kill remaining processes.
# Description: Attempts to kill remaining processes. # Description: Attempts to kill remaining processes.
# X-LFS-Default-Start:
# X-LFS-Default-Stop: S60
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# 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
# hardware clock can also be set on shutdown. # hardware clock can also be set on shutdown.
# X-LFS-Default-Start: S25
# X-LFS-Default-Stop: K46
# X-LFS-Provided-By: LFS BLFS # X-LFS-Provided-By: LFS BLFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Mounts and unmounts swap partitions. # Short-Description: Mounts and unmounts swap partitions.
# Description: Mounts and unmounts swap partitions defined in # Description: Mounts and unmounts swap partitions defined in
# /etc/fstab. # /etc/fstab.
# X-LFS-Default-Start: S20
# X-LFS-Default-Stop: S80
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Makes changes to the proc filesystem # Short-Description: Makes changes to the proc filesystem
# Description: Makes changes to the proc filesystem as defined in # Description: Makes changes to the proc filesystem as defined in
# /etc/sysctl.conf. See 'man sysctl(8)'. # /etc/sysctl.conf. See 'man sysctl(8)'.
# X-LFS-Default-Start: S05
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Starts kernel and system log daemons. # Short-Description: Starts kernel and system log daemons.
# Description: Starts kernel and system log daemons. # Description: Starts kernel and system log daemons.
# /etc/fstab. # /etc/fstab.
# X-LFS-Default-Start: S10
# X-LFS-Default-Stop: K90
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO
@ -22,44 +20,44 @@
case "${1}" in case "${1}" in
start) start)
MESSAGE="system log daemon..." MESSAGE="system log daemon..."
start_daemon /usr/sbin/syslogd -m 0 start_daemon /sbin/syslogd -m 0
evaluate_retval start evaluate_retval start
MESSAGE="kernel log daemon..." MESSAGE="kernel log daemon..."
start_daemon /usr/sbin/klogd start_daemon /sbin/klogd
evaluate_retval start evaluate_retval start
;; ;;
stop) stop)
MESSAGE="kernel log daemon..." MESSAGE="kernel log daemon..."
killproc /usr/sbin/klogd killproc /sbin/klogd
evaluate_retval stop evaluate_retval stop
MESSAGE="system log daemon..." MESSAGE="system log daemon..."
killproc /usr/sbin/syslogd killproc /sbin/syslogd
evaluate_retval stop evaluate_retval stop
;; ;;
force-reload) force-reload)
MESSAGE="system log daemon config file..." MESSAGE="system log daemon config file..."
killproc -HUP `/usr/sbin/syslogd` killproc -HUP `/sbin/syslogd`
evaluate_retval reload evaluate_retval reload
;; ;;
restart) restart)
MESSAGE="system and kernel log deamons..." MESSAGE="system and kernel log deamons..."
failed=0 failed=0
killproc /usr/sbin/klogd || failed=1 killproc /sbin/klogd || failed=1
killproc /usr/sbin/syslogd || failed=1 killproc /sbin/syslogd || failed=1
start_daemon /usr/sbin/syslogd -m 0 || failed=1 start_daemon /sbin/syslogd -m 0 || failed=1
start_daemon /usr/sbin/klogd || failed=1 start_daemon /sbin/klogd || failed=1
(exit ${failed}) (exit ${failed})
evaluate_retval restart evaluate_retval restart
;; ;;
status) status)
statusproc /usr/sbin/syslogd statusproc /sbin/syslogd
statusproc /usr/sbin/klogd statusproc /sbin/klogd
;; ;;
*) *)

View File

@ -11,8 +11,6 @@
# Default-Stop: # Default-Stop:
# Short-Description: # Short-Description:
# Description: # Description:
# X-LFS-Default-Start:
# X-LFS-Default-Stop:
# X-LFS-Provided-By: # X-LFS-Provided-By:
### END INIT INFO ### END INIT INFO

View File

@ -12,8 +12,6 @@
# Short-Description: Populated /dev with device nodes. # Short-Description: Populated /dev with device nodes.
# Description: Mounts a tempfs on /dev and starts the udevd daemon. # Description: Mounts a tempfs on /dev and starts the udevd daemon.
# Device nodes are created as defined by udev. # Device nodes are created as defined by udev.
# X-LFS-Default-Start: S15
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO

View File

@ -13,8 +13,6 @@
# Description: Replays any failed uevents that were skipped due to # Description: Replays any failed uevents that were skipped due to
# slow hardware initialization, and creates those needed # slow hardware initialization, and creates those needed
# device nodes # device nodes
# X-LFS-Default-Start: S45
# X-LFS-Default-Stop:
# X-LFS-Provided-By: LFS # X-LFS-Provided-By: LFS
### END INIT INFO ### END INIT INFO
@ -35,7 +33,7 @@ case "${1}" in
done done
# Re-trigger the failed uevents in hope they will succeed now # Re-trigger the failed uevents in hope they will succeed now
/sbin/udevadm trigger --retry-failed /sbin/udevadm trigger --type=failed
# Now wait for udevd to process the uevents we triggered # Now wait for udevd to process the uevents we triggered
/sbin/udevadm settle /sbin/udevadm settle