Changeset a6ede08 for bootscripts/lfs


Ignore:
Timestamp:
May 15, 2006, 4:14:50 PM (19 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
f588912
Parents:
4631c1c
Message:

r3512@server: jim | 2006-05-15 16:13:26 -0700
Updated LCD Support

Location:
bootscripts/lfs
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/lfs/init.d/functions

    r4631c1c ra6ede08  
    9090        if [ "$LCD_PROG" ]; then
    9191                LCD_OUT1="${1:0:$LCD_CHAR}"
    92                 $LCD_PROG "$LCD_OUT1"
     92                $LCD_PROG "$LCD_OUT1" > /dev/null 2>&1
    9393        fi
    9494
     
    138138        boot_mesg_flush "[  OK  ]"
    139139        if [ "$LCD_PROG" ]; then
    140                 LCD_OUT2="[  OK  ]"
    141                 $LCD_PROG "$LCD_OUT1" "$LCD_OUT2"
     140                if [ "$LCD_LINES" = "2" ]; then
     141                        LCD_OUT2="[  OK  ]"
     142                        $LCD_PROG "$LCD_OUT1" "$LCD_OUT2" > /dev/null 2>&1
     143                else
     144                        LCD_OUT2="${LCD_OUT1:0:12} OK"
     145                        $LCD_PROG "$LCD_OUT2" > /dev/null 2>&1
     146                fi                     
    142147        fi
    143148}
     
    149154        boot_mesg_flush "[ FAIL ]"
    150155        if [ "$LCD_PROG" ]; then
    151                 LCD_OUT2="[  FAIL  ]"
    152                 $LCD_PROG "$LCD_OUT1" "$LCD_OUT2"
     156                if [ "$LCD_LINES" = "2" ]; then
     157                        LCD_OUT2="[ FAIL  ]"
     158                        $LCD_PROG "$LCD_OUT1" "$LCD_OUT2" > /dev/null 2>&1
     159                else
     160                        LCD_OUT2="${LCD_OUT1:0:10} FAIL"
     161                        $LCD_PROG "$LCD_OUT2" > /dev/null 2>&1
     162                fi
    153163        fi
    154164}
     
    159169        echo -e "${NORMAL}"
    160170        if [ "$LCD_PROG" ]; then
    161                 LCD_OUT2="[  WARN  ]"
    162                 $LCD_PROG "$LCD_OUT1" "$LCD_OUT2"
     171                if [ "$LCD_LINES" = "2" ]; then
     172                        LCD_OUT2="[ WARN  ]"
     173                        $LCD_PROG "$LCD_OUT1" "$LCD_OUT2" > /dev/null 2>&1
     174                else
     175                        LCD_OUT2="${LCD_OUT1:0:10} WARN"
     176                        $LCD_PROG "$LCD_OUT2" > /dev/null 2>&1
     177                fi                     
    163178        fi
    164179        boot_mesg_flush "[ WARN ]"
  • bootscripts/lfs/sysconfig/lcd-raq2

    r4631c1c ra6ede08  
    1212########################################################################
    1313
     14# Set the # of lines for the LCD Display
     15#
     16LCD_LINES=2
     17
    1418# The executable that writes to the LCD
    1519#
  • bootscripts/lfs/sysconfig/lcd-raq3

    r4631c1c ra6ede08  
    1212########################################################################
    1313
     14# Set the # of lines for the LCD Display
     15#
     16LCD_LINES=2
     17
    1418# The executable that writes to the LCD
    1519#
Note: See TracChangeset for help on using the changeset viewer.