diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-02-11 22:13:27 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-02-16 19:51:15 -0600 |
commit | 746bf5f78376e2e7b3e8bc843dfa1e4a3fa6a8e4 (patch) | |
tree | f8f442647a3beb7f340a537247dce370652d56d2 /init.d/consolefont.in | |
parent | 405dfea7ad054f0767c0dda87b18398a7ec626b9 (diff) |
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 'init.d/consolefont.in')
-rw-r--r-- | init.d/consolefont.in | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/init.d/consolefont.in b/init.d/consolefont.in index 66b780d1..0e91d130 100644 --- a/init.d/consolefont.in +++ b/init.d/consolefont.in @@ -53,14 +53,10 @@ start() done eend $retval - # Store the last font so we can use it ASAP on boot + # Store the font so we can use it ASAP on boot if [ $retval -eq 0 ] && checkpath -W "$RC_LIBEXECDIR"; then mkdir -p "$RC_LIBEXECDIR"/console - for font in /usr/share/consolefonts/"$consolefont".*; do - : - done - cp "$font" "$RC_LIBEXECDIR"/console - echo "${font##*/}" >"$RC_LIBEXECDIR"/console/font + setfont -O "$RC_LIBEXECDIR"/console/font fi return $retval |