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

svn at pcbsd.org svn at pcbsd.org
Wed Jul 2 13:43:49 PDT 2008


Author: melkor
Date: 2008-07-02 13:43:49 -0700 (Wed, 02 Jul 2008)
New Revision: 2248

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

Fix localization script


Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh	2008-07-02 20:34:12 UTC (rev 2247)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.Localize.sh	2008-07-02 20:43:49 UTC (rev 2248)
@@ -207,17 +207,25 @@
         :tc=default:
 " >> ${FSMNT}/etc/login.conf
 
-# Build /etc/login.conf.db
-chroot ${FSMNT}/usr/bin/cap_mkdb /etc/login.conf
+# Build /etc/login.conf.db and change root profile
+echo "#!/bin/sh
+/usr/bin/cap_mkdb /etc/login.conf
+/usr/sbin/pw usermod root -L ${LANG}-utf" > ${FSMNT}/tmp/SetProfile
+chmod 755 ${FSMNT}/tmp/SetProfile
+chroot ${FSMNT} /tmp/SetProfile
+rm -f ${FSMNT}/tmp/SetProfile
 
-
 # Change User Langs
 ###########################################################################
 cd ${FSMNT}/usr/home
 for i in `ls`
 do
   #Change user locale profile
-  chroot ${FSMNT}/usr/sbin/pw ${i} -L ${LANG}-utf
+  echo "#!/bin/sh" > ${FSMNT}/tmp/SetProfile
+  echo "/usr/sbin/pw usermod ${i} -L ${LANG}-utf" >> ${FSMNT}/tmp/SetProfile
+  chmod 755 ${FSMNT}/tmp/SetProfile
+  chroot ${FSMNT} /tmp/SetProfile
+  rm -f ${FSMNT}/tmp/SetProfile
 
   if [ -f "${FSMNT}/usr/home/${i}/.kde/share/config/kdeglobals" ]
   then



More information about the Commits mailing list