Changeset 7930
- Timestamp:
- 02/22/07 15:41:03 (2 years ago)
- Files:
-
- trunk/bootscripts/ChangeLog (modified) (1 diff)
- trunk/bootscripts/lfs/init.d/console (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bootscripts/ChangeLog
r7929 r7930 1 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org> 2 * lfs/init.d/console: POSIX says that shells only need to trap on 3 signals. Trapping on ERR isn't always supported. Conditionals have 4 been added to set the $failed variable in spots that seemed 5 appropriate for checking errors. 6 1 7 2007-02-22 Dan Nicholson <dnicholson@linuxfromscratch.org> 2 8 * lfs/init.d/functions: Use arithmetic expansion and string length, trunk/bootscripts/lfs/init.d/console
r7928 r7930 30 30 31 31 failed=0 32 trap failed=1 ERR33 32 34 33 case "${1}" in … … 64 63 do 65 64 openvt -f -w -c ${TTY#tty} -- \ 66 /bin/sh -c "${MODE_COMMAND}" 65 /bin/sh -c "${MODE_COMMAND}" || failed=1 67 66 done 68 67 69 68 # Set the font (if not already set above) and the keymap 70 is_true "${USE_FB}" || [ -z "${FONT}" ] || setfont $FONT 71 [ -z "${KEYMAP}" ] || loadkeys ${KEYMAP} &>/dev/null 69 is_true "${USE_FB}" || [ -z "${FONT}" ] || 70 setfont $FONT || 71 failed=1 72 [ -z "${KEYMAP}" ] || 73 loadkeys ${KEYMAP} &>/dev/null || 74 failed=1 72 75 [ -z "${KEYMAP_CORRECTIONS}" ] || 73 loadkeys ${KEYMAP_CORRECTIONS} &>/dev/null 76 loadkeys ${KEYMAP_CORRECTIONS} &>/dev/null || 77 failed=1 74 78 75 79 # Linux kernel generates wrong bytes when composing … … 83 87 [ -n "$BROKEN_COMPOSE" ] || BROKEN_COMPOSE="$UNICODE" 84 88 ! is_true "$BROKEN_COMPOSE" || 85 echo "" | loadkeys -c &>/dev/null 89 echo "" | loadkeys -c &>/dev/null || 90 failed=1 86 91 87 92 # Convert the keymap from $LEGACY_CHARSET to UTF-8 88 93 [ -z "$LEGACY_CHARSET" ] || 89 dumpkeys -c "$LEGACY_CHARSET" | loadkeys -u &>/dev/null 94 dumpkeys -c "$LEGACY_CHARSET" | 95 loadkeys -u &>/dev/null || 96 failed=1 90 97 91 98 # If any of the commands above failed, the trap at the
