scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit e875dc59bae711ae4f02bc2d6bc8d095bf68c14c
parent 6bbe6ffd8bf7eef5a6896439595c349d79f6b708
Author: sin <sin@2f30.org>
Date:   Wed, 22 Jan 2014 13:14:51 +0000

Add openbsd upgrade from src script

Diffstat:
Aupgrade-obsd | 32++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+), 0 deletions(-)

diff --git a/upgrade-obsd b/upgrade-obsd @@ -0,0 +1,32 @@ +#!/bin/sh -xe + +# Update cvs repo +cd /usr/src +cvs up + +# Build the bsd.sp kernel. +# Ideally we should reboot after this stage +# and build the world with the new kernel. +cd /usr/src/sys/arch/`uname -m`/conf +config GENERIC +cd ../compile/GENERIC +make clean +make +make install +# In case we need to do any modifications +config -ef /bsd + +# Build the world +rm -rf /usr/obj/* +cd /usr/src +make clean +make obj +cd /usr/src/etc && env DESTDIR=/ make distrib-dirs +cd /usr/src +make build + +cd /dev +cp /usr/src/etc/etc.`machine`/MAKEDEV ./ +./MAKEDEV all + +sysmerge -s /usr/src