[PC-BSD Commits] r1344 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts
svn at pcbsd.org
svn at pcbsd.org
Sun Feb 10 09:02:17 PST 2008
Author: kris
Date: 2008-02-10 09:02:17 -0800 (Sun, 10 Feb 2008)
New Revision: 1344
Modified:
pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
Log:
Setup upgrade script to install kernel right for 1.5 as well
Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh 2008-02-10 16:58:04 UTC (rev 1343)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh 2008-02-10 17:02:17 UTC (rev 1344)
@@ -126,10 +126,7 @@
# Any post install stuff here
echo "........................";
-# Install single proc kernel
-sysctl -a | grep "kern.smp.cpus: 1" >/dev/null 2>/dev/null
-if [ "${?}" = "0" ]
-then
+# Install kernel
# Any post install stuff here
echo "........................";
@@ -139,39 +136,20 @@
tar xvjpf /PCBSD/kernels/pcbsd-standard.tbz
" >/mnt/tmp/RunOnSys.sh
-# Set the kernel for the system tool
-echo "#!/bin/sh
-/usr/local/bin/PBReg set /PC-BSD/Kernel FBSD-6.2-UP_PCBSD
-" > /mnt/tmp/chKernel.sh
-chmod 755 /mnt/tmp/chKernel.sh
-chroot /mnt /tmp/chKernel.sh
-rm /mnt/tmp/chKernel.sh
+chmod 755 /mnt/tmp/RunOnSys.sh
+chroot /mnt /tmp/RunOnSys.sh
-else
-# Install SMP Kernel
+rm /mnt/tmp/RunOnSys.sh
- echo "........................";
- echo "#!/bin/sh
-cd /boot
-rm -rf /boot/kernel
-tar xvjpf /PCBSD/kernels/pcbsd-SMP.tbz
-" >/mnt/tmp/RunOnSys.sh
-
# Set the kernel for the system tool
echo "#!/bin/sh
-/usr/local/bin/PBReg set /PC-BSD/Kernel FBSD-6.2-SMP_PCBSD
+/usr/local/bin/PBReg set /PC-BSD/Kernel FBSD6.3-PCBSD1.5
" > /mnt/tmp/chKernel.sh
chmod 755 /mnt/tmp/chKernel.sh
chroot /mnt /tmp/chKernel.sh
rm /mnt/tmp/chKernel.sh
-fi
-chmod 755 /mnt/tmp/RunOnSys.sh
-chroot /mnt /tmp/RunOnSys.sh
-
-rm /mnt/tmp/RunOnSys.sh
-
# Copy over our redundant files from installCD to the HD
/usr/local/pcbsd/scripts/PCBSD.CopyExtra.sh >/dev/null 2>/dev/null
More information about the Commits
mailing list