Changeset a6ede08


Ignore:
Timestamp:
May 15, 2006, 4:14:50 PM (14 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
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/Changelog

    r4631c1c ra6ede08  
     1jim - May 15, 2006
     2        * Hide all the output information from the LCD Program
     3        * Added support for 1 line LCD screens
     4        * Added a generic sysconfig/lcd
     5
    16jim - May 10, 2006
    27        * Fixed an error when the LCD device is not available
  • bootscripts/Makefile

    r4631c1c ra6ede08  
    145145        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq3          ${EXTDIR}/sysconfig/lcd; fi
    146146
     147install-lcd:
     148        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd              ${EXTDIR}/sysconfig/lcd; fi
     149
    147150.PHONY: all create-dirs create-service-dir install install-consolelog \
    148         install-service-mtu minimal install-raq2 install-raq3
     151        install-service-mtu minimal install-lcd install-raq2 install-raq3
  • 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.