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

svn at pcbsd.org svn at pcbsd.org
Fri Mar 6 07:35:26 PST 2009


Author: kris
Date: 2009-03-06 07:35:25 -0800 (Fri, 06 Mar 2009)
New Revision: 3600

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

Just a bit of post-upgrade cleanup, to ensure we have a good ldconfig, and some right user profile startup scripts



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.PostUpgrade.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.PostUpgrade.sh	2009-03-06 15:05:52 UTC (rev 3599)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.PostUpgrade.sh	2009-03-06 15:35:25 UTC (rev 3600)
@@ -24,6 +24,11 @@
     cp -R ${FSMNT}/usr/share/skel/.kde4/share/config/* ${FSMNT}/${HOMEDIR}/.kde4/share/config/
  fi
  
+ if [ -d "${FSMNT}/${HOMEDIR}/.kde4/Autostart" ]
+ then
+    cp -R ${FSMNT}/usr/share/skel/.kde4/Autostart/* ${FSMNT}/${HOMEDIR}/.kde4/share/Autostart/
+ fi
+ 
  # Copy over flash plugin
  if [ -d "${FSMNT}/${HOMEDIR}/.mozilla/plugins" ]
  then
@@ -48,3 +53,15 @@
    mv ${FSMNT}/tmp/sed ${FSMNT}/PCBSD/local/kde4/share/config/kdm/kdmrc
 fi
 
+
+# Any post Upgrade stuff here
+echo "#!/bin/sh
+rm /var/run/ld-elf.so.hints
+/etc/rc.d/ldconfig start
+" >${FSMNT}/tmp/RunOnSys.sh
+
+chmod 755 ${FSMNT}/tmp/RunOnSys.sh
+chroot ${FSMNT} /tmp/RunOnSys.sh
+
+rm ${FSMNT}/tmp/RunOnSys.sh
+



More information about the Commits mailing list