diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-07 13:15:27 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-07 13:15:27 -0200 |
commit | 6acf887ff35141803b8503ac9609863250a0bf62 (patch) | |
tree | 37cc8a42e4f4e94282c8d2d5a867db99a234610c | |
parent | ae1fa3d741d56a6c2ee97682d677fe3a49e8b3a4 (diff) | |
parent | e6068346cc5c8f858f381c2cdfa4986ec0ec8b0d (diff) | |
download | pfsense-6acf887ff35141803b8503ac9609863250a0bf62.zip pfsense-6acf887ff35141803b8503ac9609863250a0bf62.tar.gz |
Merge pull request #2167 from phil-davis/pkgsync23
-rwxr-xr-x | src/etc/rc.bootup | 6 | ||||
-rwxr-xr-x | src/usr/local/share/pfSense/post_upgrade_command | 2 | ||||
-rw-r--r-- | src/usr/local/www/diag_backup.php | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup index 478e3f5..78f9a39 100755 --- a/src/etc/rc.bootup +++ b/src/etc/rc.bootup @@ -132,6 +132,12 @@ if (file_exists("/root/firmware.tgz")) { unlink("/root/firmware.tgz"); } +/* Reinstall of packages after reboot has been requested */ +if (file_exists('/conf/needs_package_sync_after_reboot')) { + touch('/conf/needs_package_sync'); + @unlink('/conf/needs_package_sync_after_reboot'); +} + /* start devd (dhclient now uses it) */ echo "Starting device manager (devd)..."; mute_kernel_msgs(); diff --git a/src/usr/local/share/pfSense/post_upgrade_command b/src/usr/local/share/pfSense/post_upgrade_command index 4a63a31..1a3e968 100755 --- a/src/usr/local/share/pfSense/post_upgrade_command +++ b/src/usr/local/share/pfSense/post_upgrade_command @@ -5,7 +5,7 @@ PFSENSETYPE=`cat /etc/platform` if [ "${PFSENSETYPE}" = "pfSense" -o "${PFSENSETYPE}" = "nanobsd" ]; then - touch /conf/needs_package_sync + touch /conf/needs_package_sync_after_reboot fi if [ "${PFSENSETYPE}" = "nanobsd" ]; then diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php index 7e75e7e..c236ac3 100644 --- a/src/usr/local/www/diag_backup.php +++ b/src/usr/local/www/diag_backup.php @@ -372,7 +372,7 @@ if ($_POST) { /* this will be picked up by /index.php */ conf_mount_rw(); mark_subsystem_dirty("restore"); - touch("/conf/needs_package_sync"); + touch("/conf/needs_package_sync_after_reboot"); /* remove cache, we will force a config reboot */ if (file_exists("{$g['tmp_path']}/config.cache")) { unlink("{$g['tmp_path']}/config.cache"); |