diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-12 09:15:53 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-12 09:15:53 -0200 |
commit | 1262d7e796c7508aee8ac16a9babebe7a95a559b (patch) | |
tree | 8a5327585a9a99f10876382c36d2b1d88ec6efce | |
parent | e2ff2b3f4337c3916de790db57cc3298d91324cd (diff) | |
download | pfsense-1262d7e796c7508aee8ac16a9babebe7a95a559b.zip pfsense-1262d7e796c7508aee8ac16a9babebe7a95a559b.tar.gz |
platform is always defined in global
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index c818671..6f7022a 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -1,10 +1,7 @@ <?php -/****h* pfSense/pkg-utils - NAME - pkg-utils.inc - Package subsystem - DESCRIPTION - This file contains various functions used by the pfSense package system. -*/ +/* + * pkg-utils.inc + */ /* ==================================================================== * Copyright (c) 2004-2015 Electric Sheep Fencing, LLC. All rights reserved. * Copyright (c) 2005-2006 Colin Smith (ethethlay@gmail.com) @@ -91,11 +88,6 @@ if (!function_exists("pkg_debug")) { } } -global $g; -if (!isset($g['platform'])) { - $g['platform'] = trim(file_get_contents("/etc/platform")); -} - /* Remove pkg_prefix from package name if it's present */ function pkg_remove_prefix(&$pkg_name) { global $g; |