summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-06-28 19:41:24 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-06-28 19:41:24 +0200
commit830c9dd50dbbcdd8d30c8b7289668fcac820fb9a (patch)
tree15fa2aacfa0002c286df595f011f8bb8008d842a /src
parent3d1fdcf48e930ecb15a95313e4b4d39dc83295f7 (diff)
fixes for font/keymap substitutions
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-misc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh
index aa00dc6..b10d835 100644
--- a/src/core/libs/lib-misc.sh
+++ b/src/core/libs/lib-misc.sh
@@ -127,6 +127,6 @@ dohwclock() {
target_configure_initial_keymap_font ()
{
- [ -n "$var_KEYMAP" ] && sed -i "s/^KEYMAP=.*/KEYMAP=\"$var_KEYMAP\"/" ${var_TARGET_DIR}/etc/rc.conf
- [ -n "$var_CONSOLEFONT" ] && sed -i "s/^CONSOLEFONT=.*/CONSOLEFONT=\"$var_CONSOLEFONT\"/" ${var_TARGET_DIR}/etc/rc.conf
+ [ -n "$var_KEYMAP" ] && sed -i "s/^KEYMAP=.*/KEYMAP=\"`basename $var_KEYMAP .map.gz`\"/" ${var_TARGET_DIR}/etc/rc.conf
+ [ -n "$var_CONSOLEFONT" ] && sed -i "s/^CONSOLEFONT=.*/CONSOLEFONT=\"${var_CONSOLEFONT/\.*/}\"/" ${var_TARGET_DIR}/etc/rc.conf
}