aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-11-13 10:36:20 +1100
committerTom Gundersen <teg@jklm.no>2011-11-13 10:36:20 +1100
commit708f7a1b9e730cb57869d2c83407ffa4d4521f5a (patch)
treecd09040b809055b39b687681fa824924d0bdab66
parentcd9fd2a7ccb7a47e7c76914045705cf1304ca929 (diff)
downloadinitscripts-708f7a1b9e730cb57869d2c83407ffa4d4521f5a.tar.xz
locale.sh: remove leftovers
We were in certain situations still writing to locale.sh. While it would not have caused any harm, it was unintended and now removed. This change means that locale.sh will no longer load the consolemap. This would only be useful if it had been reset accidentally, and logging in again would then fix a broken console. The issue is described in FS#18759. It is not clear to me if this is still an issue, or if it solved by our new utf8/non-utf8 handling. Either way, resetting the consolemap unconditionaly does not make much sense in case the user has changed it on purpose. It might make sense to factor out the vconsole initialization into a "setup/repair my console" script, similar to systemd's /lib/systemd/systemd-vconsole-setup, but that would have to wait for a future release. Reported-by: Dave Reisner <d@falconindy.com> Cc: Роман Кирилич <roman.kyrylych@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
-rw-r--r--functions5
1 files changed, 0 insertions, 5 deletions
diff --git a/functions b/functions
index 8218d68..8f9a5d2 100644
--- a/functions
+++ b/functions
@@ -590,11 +590,6 @@ set_consolefont() {
done
if (( $? )); then
stat_fail
- elif [[ $CONSOLEMAP ]]; then
- cat <<"EOF" >>/etc/profile.d/locale.sh
-if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033(K"; fi
-EOF
- stat_done
else
stat_done
fi