Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Backport fix to /etc/rc for 2 stage updates

  • Loading branch information...
commit 06a901bd9def739c96a0fb8db30d6f37d9e13a73 1 parent 0a2cb93
@kmoore134 kmoore134 authored
Showing with 13 additions and 9 deletions.
  1. +13 −9 etc/rc
View
22 etc/rc
@@ -103,18 +103,22 @@ unset files local_rc
if [ -e "/var/.freebsd-update-finish" ] ; then
TERM="cons25" ; export TERM
clear
- echo "Installing FreeBSD updates... Please wait..."
- /usr/sbin/freebsd-update --non-interactive install
- if [ -e "/usr/local/bin/pc-softwaremanager" ] ; then
- /usr/local/bin/pc-extractoverlay desktop
- else
- /usr/local/bin/pc-extractoverlay server
- fi
+
+ # Enable networking first
+ run_rc_script /etc/rc.d/netif ${_boot}
+
+ TERM="cons25" ; export TERM
+ clear
+
+ /usr/local/bin/pc-updatemanager finish-major-update
rm /var/.freebsd-update-finish 2>/dev/null
- echo "Press ENTER to continue"
- read -t 30 tmp
+ sync
+
+ clear
+ echo "Rebooting..."
+ shutdown -r now
fi
# Tickle /etc/version
Please sign in to comment.
Something went wrong with that request. Please try again.