Adopt a more C style for scripts and remove vim settings.
This commit is contained in:
@@ -4,13 +4,15 @@
|
||||
|
||||
description="Sets a font for the consoles."
|
||||
|
||||
depend() {
|
||||
depend()
|
||||
{
|
||||
need localmount
|
||||
need keymaps # sets up terminal encoding scheme
|
||||
after hotplug
|
||||
}
|
||||
|
||||
start() {
|
||||
start()
|
||||
{
|
||||
# Forget about any font until we are successful
|
||||
rm -rf "${RC_LIBDIR}"/console
|
||||
|
||||
@@ -66,7 +68,9 @@ start() {
|
||||
if [ ${retval} -eq 0 -a -w "${RC_LIBDIR}" ]; then
|
||||
mkdir -p "${RC_LIBDIR}"/console
|
||||
|
||||
for font in /usr/share/consolefonts/"${consolefont}".*; do :; done
|
||||
for font in /usr/share/consolefonts/"${consolefont}".*; do
|
||||
:
|
||||
done
|
||||
cp "${font}" "${RC_LIBDIR}"/console
|
||||
echo "${font##*/}" > "${RC_LIBDIR}"/console/font
|
||||
if yesno ${unicode:-${UNICODE}}; then
|
||||
@@ -78,5 +82,3 @@ start() {
|
||||
|
||||
return ${retval}
|
||||
}
|
||||
|
||||
# vim: set ts=4 :
|
||||
|
||||
Reference in New Issue
Block a user