diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-18 21:48:22 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-18 21:48:22 +0000 |
commit | db4d987ffbdeac02649c4f7413800b51ce3360de (patch) | |
tree | 123dff322a0a78b18a983b82688ef0641150bf2e /usr/local | |
parent | 67c6099cf28a48fff99e4905ad72e63af9a114ba (diff) | |
download | pfsense-db4d987ffbdeac02649c4f7413800b51ce3360de.zip pfsense-db4d987ffbdeac02649c4f7413800b51ce3360de.tar.gz |
Disable packages on cdrom platform.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index 63748c0..54a7a1a 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -70,6 +70,12 @@ include("fbegin.inc"); <?php if ($savemsg) print_info_box($savemsg); ?> <?php +if(in_array($g['platform'], $g['nopkg_platforms'])) { + print_info_box("Packages are not available on this platform."); + include("fbegin.inc"); + echo '</body></html>'; +} + $pkg_info = get_pkg_info('all', array('name', 'category', 'website', 'version', 'status', 'descr')); ?> |