[PC-BSD Commits] r3255 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Wed Jan 14 09:04:38 PST 2009


Author: kris
Date: 2009-01-14 09:04:37 -0800 (Wed, 14 Jan 2009)
New Revision: 3255

Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh
Log:

Fixed a bug setting teh keylayout in rc.conf when the user wanted to leave it as the default and running another lang



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh	2009-01-14 15:44:42 UTC (rev 3254)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh	2009-01-14 17:04:37 UTC (rev 3255)
@@ -249,10 +249,18 @@
    sk) KEYLAYOUT_CONSOLE="sk.iso2" ;;
    se) KEYLAYOUT_CONSOLE="swedish.iso" ;;
    tr) KEYLAYOUT_CONSOLE="tr.iso9.q" ;;
-   *)  KEYLAYOUT_CONSOLE="${KEYLAYOUT}.iso" ;;
+   *)  if [ ! -z "${KEYLAYOUT}" ]
+       then
+         KEYLAYOUT_CONSOLE="${KEYLAYOUT}.iso" 
+       fi
+      ;;
 esac
-echo "keymap=\"${KEYLAYOUT_CONSOLE}\"" >>${FSMNT}/etc/rc.conf
 
+if [ ! -z "${KEYLAYOUT_CONSOLE}" ]
+then
+  echo "keymap=\"${KEYLAYOUT_CONSOLE}\"" >>${FSMNT}/etc/rc.conf
+fi
+
 #Setup script to set user perms
 echo '#!/bin/sh
 cd /usr/home



More information about the Commits mailing list