aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2010-12-05 00:38:08 +0100
committerTom Gundersen <teg@jklm.no>2010-12-06 11:07:48 +0100
commit4eb9da06994ebc58e4dfe73466e03ac400f98a41 (patch)
tree253a47644bc5d727c8055e46283dbbc65dd5f3ad /rc.sysinit
parent25e2ef0770bc55b0a37ae59f3edf9d90209f100c (diff)
downloadinitscripts-4eb9da06994ebc58e4dfe73466e03ac400f98a41.tar.xz
locale: set the sysfs value default_utf8 rather than enabling/disabling utf8 in locale.sh
This should go some way towards obsoleting /etc/profiled.d/locales.sh (FS#20911). The remaining, and admittedly main, obstacle is proper inheritance of LANG, which Roman is working on.
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit10
1 files changed, 2 insertions, 8 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 589e00d..2f76dad 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -314,10 +314,7 @@ if [[ ${LOCALE,,} =~ utf ]]; then
/usr/bin/kbd_mode -u < ${i}
printf "\033%%G" > ${i}
done
- # the $CONSOLE check helps us avoid this when running scripts from cron
- cat <<"EOF" >>/etc/profile.d/locale.sh
-if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%G"; fi
-EOF
+ echo 1 > /sys/module/vt/parameters/default_utf8
stat_done
[[ $KEYMAP ]] && status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q -u "$KEYMAP"
else
@@ -327,10 +324,7 @@ else
/usr/bin/kbd_mode -a < ${i}
printf "\033%%@" > ${i}
done
- # the $CONSOLE check helps us avoid this when running scripts from cron
- cat <<"EOF" >>/etc/profile.d/locale.sh
-if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%@"; fi
-EOF
+ echo 0 > /sys/module/vt/parameters/default_utf8
stat_done
[[ $KEYMAP ]] && status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP
fi