Changeset 2487 in MondoRescue for branches/2.2.9


Ignore:
Timestamp:
Nov 18, 2009, 9:40:56 PM (14 years ago)
Author:
Bruno Cornec
Message:

r3620@localhost: bruno | 2009-11-18 10:31:36 +0100

  • Only link /dev/tty to serial port when there is indeed a serial port. If not breaks mondorestore on normal console
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2484 r2487  
    8383    # By default first serial line is configured as tty
    8484    # Required to have a correct serial console support (MP on ia64 or VSP with iLO2 e.g.)
    85     serial=/dev/ttyS0
    8685    for i in `cat /proc/cmdline` ; do
    8786        echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2`
    8887    done
    89     ln -s -f $serial /dev/tty
     88    # Doing that is only valid when using a real serial line
     89    if [ -f $serial ]; then
     90        ln -s -f $serial /dev/tty
     91    fi
    9092}
    9193
Note: See TracChangeset for help on using the changeset viewer.