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

svn at pcbsd.org svn at pcbsd.org
Fri Jun 8 11:00:02 PDT 2007


Author: kris
Date: 2007-06-08 19:00:01 +0100 (Fri, 08 Jun 2007)
New Revision: 306

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


Modified script to ensure both the xorg.conf.template and the auto-detect
template get modified with localization



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SaveKeyboard.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SaveKeyboard.sh	2007-06-08 17:56:11 UTC (rev 305)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SaveKeyboard.sh	2007-06-08 18:00:01 UTC (rev 306)
@@ -8,13 +8,24 @@
 
 cp ${XF86_CFG} ${XF86_TMP_CFG}
 sed "s/\"us\"/\"${KEYMAP}\"/" < ${XF86_TMP_CFG} > ${XF86_CFG}
-#rm -f ${XF86_TMP_CFG}
+rm -f ${XF86_TMP_CFG}
 
+XF86_CFG="/mnt/PCBSD/xorg-gui/autoDetect/XF86Config.default"
+cp ${XF86_CFG} ${XF86_TMP_CFG}
+sed "s/\"us\"/\"${KEYMAP}\"/" < ${XF86_TMP_CFG} > ${XF86_CFG}
+rm -f ${XF86_TMP_CFG}
+
 if [ "${1}" = "br" ]
 then
 
 cp ${XF86_CFG} ${XF86_TMP_CFG}
 sed "s/\"pc105\"/\"abnt2\"/" < ${XF86_TMP_CFG} > ${XF86_CFG}
-#rm -f ${XF86_TMP_CFG}
+rm -f ${XF86_TMP_CFG}
 
+XF86_CFG="/mnt/PCBSD/xorg-gui/autoDetect/XF86Config.default"
+cp ${XF86_CFG} ${XF86_TMP_CFG}
+sed "s/\"pc105\"/\"abnt2\"/" < ${XF86_TMP_CFG} > ${XF86_CFG}
+rm -f ${XF86_TMP_CFG}
+
+
 fi



More information about the Commits mailing list