Changeset 8167

Show
Ignore:
Timestamp:
06/16/07 14:47:37 (1 year ago)
Author:
dnicholson
Message:

Don't suppress stderr in bootscripts when not necessary

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bootscripts/ChangeLog

    r8109 r8167  
     12007-06-16      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
     2        * lfs/init.d/mountfs, lfs/init.d/mountkernfs, lfs/init.d/setclock, 
     3          lfs/init.d/modules, lfs/sysconfig/network-devices/if{up,down}: 
     4          Don't suppress stderr during bootscripts unless necessary. This 
     5          would prevent potentially critical messages from reaching the screen. 
     6 
    172007-04-24      Dan Nicholson   <dnicholson@linuxfromscratch.org> 
    28        * lfs/init.d/functions: When killproc is executed, it checks that 
  • trunk/bootscripts/lfs/init.d/modules

    r6763 r8167  
    5555                                        # Attempt to load the module, making 
    5656                                        # sure to pass any arguments provided. 
    57                                         modprobe ${module} ${args} 2>&1 > /dev/null 
     57                                        modprobe ${module} ${args} > /dev/null 
    5858 
    5959                                        # Print the module name if successful, 
  • trunk/bootscripts/lfs/init.d/mountfs

    r7931 r8167  
    1919        start) 
    2020                boot_mesg "Remounting root file system in read-write mode..." 
    21                 mount -n -o remount,rw / >/dev/null 2>&1 
     21                mount -n -o remount,rw / >/dev/null 
    2222                evaluate_retval 
    2323 
     
    3636                # their option list.  _netdev denotes a network filesystem. 
    3737                boot_mesg "Mounting remaining file systems..." 
    38                 mount -a -O no_netdev >/dev/null 2>&1 
     38                mount -a -O no_netdev >/dev/null 
    3939                evaluate_retval 
    4040                ;; 
     
    4242        stop) 
    4343                boot_mesg "Unmounting all other currently mounted file systems..." 
    44                 umount -a -d -r >/dev/null 2>&1 
     44                umount -a -d -r >/dev/null 
    4545                evaluate_retval 
    4646                ;; 
  • trunk/bootscripts/lfs/init.d/mountkernfs

    r7931 r8167  
    2020                boot_mesg -n "Mounting kernel-based file systems:" ${INFO} 
    2121 
    22                 if ! mountpoint /proc >/dev/null 2>&1; then 
     22                if ! mountpoint /proc >/dev/null; then 
    2323                        boot_mesg -n " /proc" ${NORMAL} 
    2424                        mount -n /proc || failed=1 
    2525                fi 
    2626 
    27                 if ! mountpoint /sys >/dev/null 2>&1; then 
     27                if ! mountpoint /sys >/dev/null; then 
    2828                        boot_mesg -n " /sys" ${NORMAL} 
    2929                        mount -n /sys || failed=1 
  • trunk/bootscripts/lfs/init.d/setclock

    r7931 r8167  
    3333        start) 
    3434                boot_mesg "Setting system clock..." 
    35                 hwclock --hctosys ${CLOCKPARAMS} >/dev/null 2>&1 
     35                hwclock --hctosys ${CLOCKPARAMS} >/dev/null 
    3636                evaluate_retval 
    3737                ;; 
     
    3939        stop) 
    4040                boot_mesg "Setting hardware clock..." 
    41                 hwclock --systohc ${CLOCKPARAMS} >/dev/null 2>&1 
     41                hwclock --systohc ${CLOCKPARAMS} >/dev/null 
    4242                evaluate_retval 
    4343                ;; 
  • trunk/bootscripts/lfs/sysconfig/network-devices/ifdown

    r4828 r8167  
    8383 
    8484if [ -z "${2}" ]; then 
    85         link_status=`ip link show $1 2> /dev/null
     85        link_status=`ip link show $1
    8686        if [ -n "${link_status}" ]; then 
    8787                if echo "${link_status}" | grep -q UP; then 
  • trunk/bootscripts/lfs/sysconfig/network-devices/ifup

    r4831 r8167  
    6464                        if [ -z "${CHECK_LINK}" -o "${CHECK_LINK}" = "y" -o "${CHECK_LINK}" = "yes" -o "${CHECK_LINK}" = "1" ]; then 
    6565                                if ip link show ${1} > /dev/null 2>&1; then 
    66                                         link_status=`ip link show ${1} 2> /dev/null
     66                                        link_status=`ip link show ${1}
    6767                                        if [ -n "${link_status}" ]; then 
    6868                                                if ! echo "${link_status}" | grep -q UP; then