Changeset 3749

Show
Ignore:
Timestamp:
04/02/09 14:10:27 (11 months ago)
Author:
kris
Message:

Fixed a bug when doing an upgrade, be sure to run the localization script *after* we copy the kde4 template config files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.SysConfig.sh

    r3743 r3749  
    4141 
    4242 
    43  
    4443# Copy the new splash screen over 
    4544cp ${FSMNT}/PCBSD/splash-screens/loading-screen-en.pcx ${FSMNT}/boot/loading-screen.pcx 
    46  
    47 # Setup the Localization 
    48 if [ "${LANG}" != "en" ] 
    49 then 
    50    # Copy the right splash screen over 
    51     cp ${FSMNT}/PCBSD/splash-screens/loading-screen-${LANG}.pcx ${FSMNT}/boot/loading-screen.pcx 
    52    # Run the Localize script 
    53    /usr/local/pcbsd/scripts/PCBSD.Localize.sh ${LANG} ${KEYLAYOUT} 
    54 else 
    55  
    56   # Remove the keyboard switcher from loading 
    57   rm ${FSMNT}/usr/share/skel/.kde4/share/config/kxkbrc 
    58   rm ${FSMNT}/root/.kde4/share/config/kxkbrc 
    59  
    60   # Remove it from the user profiles as well 
    61   cd ${FSMNT}/usr/home 
    62   for i in `ls` 
    63   do 
    64     rm ${FSMNT}/usr/home/${i}/.kde4/share/config/kxkbrc 
    65   done 
    66   cd /  
    67  
    68 fi 
    69  
    70 # Copy over some of the skel files to /root 
    71 cp ${FSMNT}/usr/share/skel/dot.cshrc ${FSMNT}/root/.cshrc 
    72  
    7345 
    7446# Copy over the working xorg.conf file from the install CD to the booted 
     
    142114fi 
    143115 
     116# Setup the Localization 
     117if [ "${LANG}" != "en" ] 
     118then 
     119   # Copy the right splash screen over 
     120    cp ${FSMNT}/PCBSD/splash-screens/loading-screen-${LANG}.pcx ${FSMNT}/boot/loading-screen.pcx 
     121   # Run the Localize script 
     122   /usr/local/pcbsd/scripts/PCBSD.Localize.sh ${LANG} ${KEYLAYOUT} 
     123else 
     124 
     125  # Remove the keyboard switcher from loading 
     126  rm ${FSMNT}/usr/share/skel/.kde4/share/config/kxkbrc 
     127  rm ${FSMNT}/root/.kde4/share/config/kxkbrc 
     128 
     129  # Remove it from the user profiles as well 
     130  cd ${FSMNT}/usr/home 
     131  for i in `ls` 
     132  do 
     133    rm ${FSMNT}/usr/home/${i}/.kde4/share/config/kxkbrc 
     134  done 
     135  cd /  
     136 
     137fi 
     138 
     139# Copy over some of the skel files to /root 
     140cp ${FSMNT}/usr/share/skel/dot.cshrc ${FSMNT}/root/.cshrc 
     141 
    144142# Make sure each dir is "chowned" properly 
    145143/usr/local/pcbsd/scripts/PCBSD.SetUserPerms.sh