summaryrefslogtreecommitdiffstats
path: root/src/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-xsrc/etc/rc24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/etc/rc b/src/etc/rc
index 1215883..4c4b848 100755
--- a/src/etc/rc
+++ b/src/etc/rc
@@ -166,10 +166,6 @@ elif [ "$PLATFORM" = "nanobsd" ] || [ ${USE_MFS_TMPVAR} -gt 0 ]; then
/bin/mkdir -p /root/var/db/pkg
/bin/rm -rf /var/db/pkg
/bin/ln -s /root/var/db/pkg/ /var/db/pkg
- # Ensure that PBI packages can be persistent across reboots
- /bin/mkdir -p /root/var/db/pbi
- /bin/rm -rf /var/db/pbi
- /bin/ln -s /root/var/db/pbi/ /var/db/pbi
else
SWAPDEVICE=`/bin/cat /etc/fstab | /usr/bin/grep swap | /usr/bin/cut -f1`
/sbin/swapon -a 2>/dev/null >/dev/null
@@ -179,19 +175,9 @@ else
# User must have just disabled RAM disks, move these back into place.
/bin/mkdir -p /var/db/pkg
/bin/mv /root/var/db/pkg /var/db/pkg
- /bin/mkdir -p /var/db/pbi
- /bin/mv /root/var/db/pbi /var/db/pbi
fi
fi
-# Copy PBI keys
-if ls /usr/local/share/pbi-keys/*.ssl >/dev/null 2>&1; then
- if [ ! -d "/var/db/pbi/keys" ]; then
- mkdir -p /var/db/pbi/keys
- fi
- cp -f /usr/local/share/pbi-keys/*.ssl /var/db/pbi/keys
-fi
-
if [ "$PLATFORM" = "cdrom" ] ; then
echo -n "Mounting unionfs directories..."
/bin/mkdir /tmp/unionfs
@@ -280,10 +266,6 @@ if [ ! -d /var/tmp ]; then
/bin/mkdir -p /var/tmp
fi
-if [ ! -d /cf/conf/backup/ ]; then
- /bin/mkdir -p /cf/conf/backup/
-fi
-
set -T
trap "echo 'Reboot interrupted'; exit 1" 3
@@ -350,6 +332,12 @@ echo "done."
# Recreate capabilities DB
/usr/bin/cap_mkdb /etc/login.conf
+# Finish update
+if [ -f /cf/conf/upgrade_in_progress ]; then
+ echo "Running second stage of upgrade process..."
+ /usr/local/sbin/pfsense-upgrade.sh -y
+fi
+
# Run the php.ini setup file and populate
# /usr/local/etc/php.ini and /usr/local/lib/php.ini
/etc/rc.php_ini_setup 2>/tmp/php_errors.txt
OpenPOWER on IntegriCloud