Ignore:
Timestamp:
May 9, 2006, 4:31:02 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:
09aac41
Parents:
ed30f2e
Message:

Added: LCD Support to bootscripts

File:
1 edited

Legend:

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

    red30f2e rc6e88663  
    1313#
    1414########################################################################
     15
     16if [ -e /etc/sysconfig/lcd ]; then
     17        source /etc/sysconfig/lcd
     18fi
    1519
    1620## Environmental setup
     
    8286        local ECHOPARM=""
    8387
     88        if [ "$LCD_PROG" ]; then
     89                LCD_OUT1="${1:0:$LCD_CHAR}"
     90                $LCD_PROG "$LCD_OUT1"
     91        fi
     92
    8493        while true
    8594        do
     
    126135        echo -e "${NORMAL}"
    127136        boot_mesg_flush "[  OK  ]"
     137        if [ "$LCD_PROG" ]; then
     138                LCD_OUT2="[  OK  ]"
     139                $LCD_PROG $LCD_OPTIONS "$LCD_OUT1" "$LCD_OUT2"
     140        fi
    128141}
    129142
     
    133146        echo -e "${NORMAL}"
    134147        boot_mesg_flush "[ FAIL ]"
     148        if [ "$LCD_PROG" ]; then
     149                LCD_OUT2="[  FAIL  ]"
     150                $LCD_PROG $LCD_OPTIONS "$LCD_OUT1" "$LCD_OUT2"
     151        fi
    135152}
    136153
     
    139156        echo -n -e "${CURS_UP}${SET_COL}${BRACKET}[${WARNING} WARN ${BRACKET}]"
    140157        echo -e "${NORMAL}"
     158        if [ "$LCD_PROG" ]; then
     159                LCD_OUT2="[  WARN  ]"
     160                $LCD_PROG $LCD_OPTIONS "$LCD_OUT1" "$LCD_OUT2"
     161        fi
    141162        boot_mesg_flush "[ WARN ]"
    142163}
     
    160181        boot_mesg -n "Press Enter to continue..." ${INFO}
    161182        boot_mesg "" ${NORMAL}
    162         read ENTER
     183        if [ "$LCD_PROG" ]; then
     184                sleep 10
     185        else
     186                read ENTER
     187        fi
    163188}
    164189
Note: See TracChangeset for help on using the changeset viewer.