diff options
author | Bill Nottingham <notting@redhat.com> | 2006-10-04 21:53:37 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-10-04 21:53:37 +0000 |
commit | d810b7d3c175640895850344eeb30e928b673427 (patch) | |
tree | 0bfffd68ed28dbdc9bfe5d0bc8684d994ac2b4de /rc.d | |
parent | 4fbc6d8759e2438dedfcdffee620136b1dc497a7 (diff) | |
download | initscripts-d810b7d3c175640895850344eeb30e928b673427.tar initscripts-d810b7d3c175640895850344eeb30e928b673427.tar.gz initscripts-d810b7d3c175640895850344eeb30e928b673427.tar.bz2 initscripts-d810b7d3c175640895850344eeb30e928b673427.tar.xz initscripts-d810b7d3c175640895850344eeb30e928b673427.zip |
set keymap correctly in non-UTF8 locale (#167363)
separate tmpfs-usage for stateless from readonly-root (requested by
OLPC)
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 60ae01a3..453b11fd 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -376,7 +376,11 @@ if [ -x /bin/loadkeys ]; then else echo -n $"Loading default keymap: " fi - loadkeys -u $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \ + LOADKEYS=loadkeys + if [ "${LANG}" != "${LANG%%.UTF-8}" -o "${LANG}" != "${LANG%%.utf8}" ]; then + LOADKEYS="loadkeys -u" + fi + $LOADKEYS $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \ success $"Loading default keymap" || failure $"Loading default keymap" echo fi @@ -490,7 +494,7 @@ if strstr "$cmdline" noreadonlyroot ; then READONLY=no fi -if [ "$READONLY" = "yes" ]; then +if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then mount_empty() { if [ -e "$1" ]; then @@ -582,7 +586,7 @@ if [ "$READONLY" = "yes" ]; then /bin/true elif [ x$state_mount_dev != x ] && mount $state_mount_dev $mountopts "$STATE_MOUNT" > /dev/null 2>&1; then /bin/true - else + elif [ -n "$CLIENTSTATE" ]; then # No local storage was found. Make a final attempt to find # state on an NFS server. |