3 cmdl=`cat /proc/cmdline`
4 #cmdl="console=ttySA0,115200 console=ttySB0,115200"
5 if expr "$cmdl" : '.*mtdparts=ipaq' > /dev/null; then
7 echo "Detected Compaq bootldr or derivative"
8 echo "Kernel command line is assumed to be bogus and ignored"
10 CMDLINE="console=ttyS0,115200 console=tty0"
14 # The main trouble is the bogus console=ttySA0 passed by bootldr
15 # It appears that kernel doesn't have protection against only invalid
16 # consoles being passed on the command line, which means that the
17 # kernel is deaf and dumb when booted by bootldr
23 optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
26 if expr "$optarg" : 'ttySA[0-9]\+' > /dev/null; then
28 elif expr "$optarg" : 'ttyS\?[0-9]\+' > /dev/null; then
35 if [ $INVALID_CONSOLE -eq 1 -a $VALID_CONSOLE -eq 0 ]; then
37 echo "No valid system console is detected"
38 echo "Explicitly using /dev/tty0 for input/output"