Changeset c6e88663


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

Location:
bootscripts
Files:
2 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • bootscripts/Makefile

    red30f2e rc6e88663  
    123123        if [ ! -f ${EXTDIR}/sysconfig/createfiles ]; then install -m ${CONFMODE} lfs/sysconfig/createfiles ${EXTDIR}/sysconfig/; fi
    124124
    125 .PHONY: all create-dirs create-service-dir \
    126         install install-service-mtu
     125install-raq2:
     126        install -m ${MODE} lfs/init.d/paneld        ${EXTDIR}/rc.d/init.d/
     127        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc0.d/K01paneld
     128        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc1.d/S99paneld
     129        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc2.d/S99paneld
     130        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc3.d/S99paneld
     131        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc4.d/S99paneld
     132        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc5.d/S99paneld
     133        ln -sf ../init.d/paneld      ${EXTDIR}/rc.d/rc6.d/K01paneld
     134        if [ ! -f ${EXTDIR}/sysconfig/lcd          ]; then install -m ${CONFMODE} lfs/sysconfig/lcd-raq2          ${EXTDIR}/sysconfig/lcd; fi
     135
     136.PHONY: all create-dirs create-service-dir install install-consolelog \
     137        install-service-mtu minimal install-raq2
  • 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.