]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Remove a lot of more console output when booting.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Aug 2009 13:50:33 +0000 (15:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Aug 2009 13:50:33 +0000 (15:50 +0200)
src/initscripts/core/checkfs.conf
src/initscripts/core/load-modules.conf
src/initscripts/core/loopback.conf
src/initscripts/core/mount-kernel-filesystems.conf
src/initscripts/core/swap.conf

index dec66dadf5c23113618ffa12ba74fdd6edffcea6..084ab383fc159507ae48a7b71dcfe0cde6517944 100644 (file)
@@ -6,14 +6,8 @@ start on stopped udevtrigger
 console output
 
 script
-       set -e
-       . /etc/init/functions
-
-       if [ -f /fastboot ]; then
-               echo "${INFO}/fastboot found!${NORMAL}"
-               log_success_msg "Will not perform file system checks as requested."
-               exit 0
-       fi
+       # If requested, do not check the filesystems
+       [ -f /fastboot ] && exit 0
 
        mount -n -o remount,ro / >/dev/null
        if [ ${?} != 0 ]; then
@@ -29,10 +23,8 @@ script
                ## XXX need to shutdown the system cleanly here
        fi
 
-       if [ -f /forcefsck ]
-       then
-               echo "${INFO}/forcefsck found!"
-               log_success_msg "${INFO}Forcing file system checks as requested."
+       # Force check if /forcefsck is found
+       if [ -f /forcefsck ]; then
                options="-f"
        else
                options=""
index 77b7b99378f5134795eda92d4611b09d26d76abd..b64658c389ed038e06e446562686ecc02bda1b27 100644 (file)
@@ -3,12 +3,7 @@ author                 "IPFire Team"
 
 start on stopped mount-kernel-filesystems
 
-console output
-
 script
-       set -e
-       . /etc/init/functions
-
        # Exit if there's no modules file or there are no
        # valid entries
        [ -r /etc/sysconfig/modules ] &&
@@ -35,8 +30,6 @@ script
                # Read in the configuration file.
                exec 9>&0 < /etc/sysconfig/modules
 
-                       message="${INFO}Loading modules:"
-
                        while read module args; do
                                # Ignore comments and blank lines.
                                case "${module}" in
@@ -46,26 +39,8 @@ script
                                # Attempt to load the module, making
                                # sure to pass any arguments provided.
                                modprobe ${module} ${args} > /dev/null
-
-                               # Print the module name if successful,
-                               # otherwise take note.
-                               if [ ${?} -eq 0 ]; then
-                                       message="${message}${NORMAL} ${module}"
-                               else
-                                       failedmod="${failedmod} ${module}"
-                               fi
                        done
 
-                       # Print a message about successfully loaded
-                       # modules on the correct line.
-                       log_success_msg "${message}"
-
-                       # Print a failure message with a list of any
-                       # modules that may have failed to load.
-                       if [ "${failedmod}" ]; then
-                               log_failure_msg "${FAILURE}Failed to load modules:${failedmod}"
-                       fi
-
                exec 0>&9 9>&-
 
        fi
index 7b909a22aedd6a0adc72b6f5323a0203f1539f50..fc5d64a6eb5ff14e126782121f57cd3337e92522 100644 (file)
@@ -3,31 +3,14 @@ author                        "IPFire Team"
 
 start on started udev
 
-console output
-
 script
-       set -e
-       . /etc/init/functions
-
        [ -e "/etc/sysconfig/network" ] && \
                . /etc/sysconfig/network
 
        ip addr add 127.0.0.1/8 label lo dev lo
        ip link set lo up
-       if [ "${?}" = "0" ]; then
-               log_success_msg "Bringing up the loopback interface..."
-       else
-               log_failure_msg "Bringing up the loopback interface..."
-       fi
 
        if [ -n "${HOSTNAME}" ]; then
                hostname "${HOSTNAME}"
-               if [ "${?}" = "0" ]; then
-                       log_success_msg "Setting hostname to ${HOSTNAME}..."
-               else
-                       log_failure_msg "Setting hostname to ${HOSTNAME}..."
-               fi
-       else
-               log_warning_msg "No hostname was set!"
        fi
 end script
index 2ed3b962af7ab9242afb37662e59e83fae650b9d..cef79e5299778891decdda2c54f42c641eefeb7f 100644 (file)
@@ -3,24 +3,14 @@ author                        "IPFire Team"
 
 start on stopped welcome
 
-console output
-
 script
-       set -e
-       . /etc/init/functions
-
-       message="Mounting kernel-based file systems:"
-
        if ! mountpoint /proc > /dev/null; then
-               message="${message}${INFO} /proc${NORMAL}"
                mount -n /proc || failed=1
        fi
 
        if ! mountpoint /sys > /dev/null; then
-               message="${message}${INFO} /sys${NORMAL}"
                mount -n /sys || failed=1
        fi
 
-       (exit ${failed})
-       evaluate_retval standard
+       exit ${failed}
 end script
index 1f5a7a57f83d426080633dbf05cc520e4fc7de74..8cbf129889a869e2f1e9bd6d39532fb639e9d23a 100644 (file)
@@ -3,13 +3,4 @@ author                 "IPFire Team"
 
 start on stopped checkfs
 
-console output
-
-script
-       set -e
-       . /etc/init/functions
-
-    MESSAGE="Activating all swap files/partitions..."
-    swapon -a
-    evaluate_retval standard
-end script
+exec /sbin/swapon -a