Changeset 2484 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Nov 15, 2009, 12:44:19 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for variable serial port console, with defalut to /dev/ttyS0, and a boot param to change it with serial=/dev/ttySx
File:
1 edited

Legend:

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

    r2481 r2484  
    9292    # May avoid shell error messages
    9393    chmod 666 /dev/tty* /dev/console
    94     if [ "$ARCH" = "ia64" ]; then
    95         # Required to have a correct terminal or serial console support
    96         ln -s -f /dev/ttyS0 /dev/tty
    97     fi
     94    # By default first serial line is configured as tty
     95    # Required to have a correct serial console support (MP on ia64 or VSP with iLO2 e.g.)
     96    serial=/dev/ttyS0
     97    for i in `cat /proc/cmdline` ; do
     98        echo $i | grep -qi serial= && serial=`echo $i | cut -d= -f2`
     99    done
     100    ln -s -f $serial /dev/tty
    98101}
    99102
Note: See TracChangeset for help on using the changeset viewer.