Drop < 10.x bits, not officially supported anymore
MODIFY
freebsd/scripts/update.sh
freebsd/scripts/update.sh
[ -z "$http_proxy" ] && unset http_proxy
[ -z "$https_proxy" ] && unset https_proxy
-major_version="`uname -r | awk -F. '{print $1}'`";
-
-if [ "$major_version" -lt 10 ]; then
- # Allow freebsd-update to run fetch without stdin attached to a terminal
- sed 's/\[ ! -t 0 \]/false/' /usr/sbin/freebsd-update >/tmp/freebsd-update;
- chmod +x /tmp/freebsd-update;
-
- freebsd_update="/tmp/freebsd-update";
-else
freebsd_update="/usr/sbin/freebsd-update --not-running-from-cron";
-fi
# Update FreeBSD
# NOTE: the install action fails if there are no updates so || true it
@@ -27,10 +17,5 @@ if [ "$pkg_branch" != "quarterly" ]; then
rm -f /etc/pkg/FreeBSD.conf.bak
fi
-# Always use pkgng - pkg_add is EOL as of 1 September 2014
env ASSUME_ALWAYS_YES=true pkg bootstrap;
-if [ "$major_version" -lt 10 ]; then
- echo "WITH_PKGNG=yes" >>/etc/make.conf;
-fi
-
pkg update;

MODIFY
freebsd/scripts/vmtools.sh
freebsd/scripts/vmtools.sh
@@ -16,10 +16,7 @@ virtualbox-iso|virtualbox-ovf)
echo 'vboxservice_enable="YES"' >>/etc/rc.conf;
echo 'virtio_blk_load="YES"' >>/boot/loader.conf;
- if [ "$freebsd_major" -gt 9 ]; then
- # Appeared in FreeBSD 10
echo 'virtio_scsi_load="YES"' >>/boot/loader.conf;
- fi
echo 'virtio_balloon_load="YES"' >>/boot/loader.conf;
echo 'if_vtnet_load="YES"' >>/boot/loader.conf;

Drop < 10.x bits, not officially supported anymore