summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-11 22:13:27 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-16 19:51:15 -0600
commit746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4 (patch)
treef8f442647a3beb7f340a537247dce370652d56d2 /sh
parent405dfea7ad054f0767c0dda87b18398a7ec626b9 (diff)
downloadopenrc-746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4.tar.gz
openrc-746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4.tar.bz2
openrc-746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4.tar.xz
consolefont: use setfont to save the current font
Using setfont directly to save the font prevents breakage when a distro stores consolefonts in a location other than /usr/share/consolefonts such as Arch which stores them in /usr/share/kbd/consolefonts Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'sh')
-rw-r--r--sh/init-early.sh.Linux.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in
index fb3860a..f9d2388 100644
--- a/sh/init-early.sh.Linux.in
+++ b/sh/init-early.sh.Linux.in
@@ -31,9 +31,8 @@ if service_present "$RC_DEFAULTLEVEL" consolefont ||
service_present "$RC_BOOTLEVEL" consolefont; then
printf "\033%s" "$termencoding" >"$CONSOLE" 2>/dev/null
if [ -r "$RC_LIBEXECDIR"/console/font -a -x /usr/bin/setfont ]; then
- font="$(cat "$RC_LIBEXECDIR"/console/font)"
[ -c "$CONSOLE" ] && cons="-C $CONSOLE"
- setfont $cons "$RC_LIBEXECDIR"/console/"$font" 2>/dev/null
+ setfont $cons "$RC_LIBEXECDIR"/console/font 2>/dev/null
fi
fi