diff options
author | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:07 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-10-12 16:29:49 -0300 |
commit | dc61252ae4dbfcfe5d75f40c86b5cf955242b788 (patch) | |
tree | 8db639550cb248216a10b6b9d5ec10ab6384c32f /src/usr/local/www/index.php | |
parent | 9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff) | |
download | pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz |
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r-- | src/usr/local/www/index.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index 460ddbd..2995ad8 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -155,14 +155,12 @@ if (file_exists("/usr/sbin/swapinfo")) { ## If packages are installed lets resync if (file_exists('/conf/needs_package_sync')) { if ($config['installedpackages'] <> '' && is_array($config['installedpackages']['package'])) { - if ($g['platform'] == $g['product_name'] || $g['platform'] == "nanobsd") { - ## If the user has logged into webGUI quickly while the system is booting then do not redirect them to - ## the package reinstall page. That is about to be done by the boot script anyway. - ## The code in head.inc will put up a notice to the user. - if (!platform_booting()) { - header('Location: pkg_mgr_install.php?mode=reinstallall'); - exit; - } + ## If the user has logged into webGUI quickly while the system is booting then do not redirect them to + ## the package reinstall page. That is about to be done by the boot script anyway. + ## The code in head.inc will put up a notice to the user. + if (!platform_booting()) { + header('Location: pkg_mgr_install.php?mode=reinstallall'); + exit; } } else { @unlink('/conf/needs_package_sync'); |