Thursday, September 21, 2006

Update a system to the stable branch of OpenBSD

To update the system source to the stable branch of OpenBSD run this
#!/bin/sh

export CVS_RSH=/usr/bin/ssh
#export CVSROOT=anoncvs@anoncvs.de.openbsd.org:/cvs
export CVSROOT=anoncvs@anoncvs.no.openbsd.org:/cvs
VERSION=`uname -a | awk
# initial get
cd /usr; cvs checkout -P -rOPENBSD_${VERSION} src
else
# update
cd /usr/src
cvs -q up -rOPENBSD_${VERSION} -Pd
fi

No comments: