This is not a replacement of https://www.freebsd.org/doc/handbook/updating-upgrading.html , neither a script. So do not blindly execute it, without trying to understand what happens behind.
I advice to execute this in a standard, posix compliant and clean shell, /bin/sh should be the best choice.
To have a good error handlingh execute set -xe
beadm create 110beta4To110rc2
beadm activate 110beta4To110rc2
reboot
beadm rename default 11beta4
mv /usr/src /usr/src.110beta4
svnlite co https://svn0.us-west.freebsd.org/base/stable/11 /usr/src
cd /usr/src
# READ UPDATING !!!
make -j `sysctl -n hw.ncpu` buildworld
make -j `sysctl -n hw.ncpu` buildkernel
make installkernel
reboot
cd /usr/src
mergemaster -p
make installworld
mergemaster -iUF
yes | make delete-old
yes | make delete-old-libs
chflags -R noschg /usr/obj/* && rm -rf /usr/obj/*
reboot
pkg-static install -f pkg
- https://www.reddit.com/user/EpiJunkie
- https://www.reddit.com/r/freebsd/comments/4wgam8/freebsd110beta4_is_out/d67aj96
- @barfod on irc:freenode.net # FreeBSD