diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-10 14:48:25 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-10 14:48:25 -0300 |
commit | 842d9546bb141519862e49ce6a21e498d080768d (patch) | |
tree | 9f41d9794cf35a1c918f5a8e5a484ec278fee1d4 /src/etc/rc | |
parent | 5bc0af4849480e50976cb3712c6a3fbfb6317f2a (diff) | |
parent | 842fc1e2a9f7cd8672773fcfdf7fb14ee2ceea58 (diff) | |
download | pfsense-842d9546bb141519862e49ce6a21e498d080768d.zip pfsense-842d9546bb141519862e49ce6a21e498d080768d.tar.gz |
Merge branch 'master' into bootstrap
Diffstat (limited to 'src/etc/rc')
-rwxr-xr-x | src/etc/rc | 24 |
1 files changed, 6 insertions, 18 deletions
@@ -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 |