Changeset a6ede08 for bootscripts/lfs/init.d/functions
- Timestamp:
- May 15, 2006, 4:14:50 PM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- f588912
- Parents:
- 4631c1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/lfs/init.d/functions
r4631c1c ra6ede08 90 90 if [ "$LCD_PROG" ]; then 91 91 LCD_OUT1="${1:0:$LCD_CHAR}" 92 $LCD_PROG "$LCD_OUT1" 92 $LCD_PROG "$LCD_OUT1" > /dev/null 2>&1 93 93 fi 94 94 … … 138 138 boot_mesg_flush "[ OK ]" 139 139 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 142 147 fi 143 148 } … … 149 154 boot_mesg_flush "[ FAIL ]" 150 155 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 153 163 fi 154 164 } … … 159 169 echo -e "${NORMAL}" 160 170 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 163 178 fi 164 179 boot_mesg_flush "[ WARN ]"
Note:
See TracChangeset
for help on using the changeset viewer.