summaryrefslogtreecommitdiffstats
path: root/etc/rc.start_packages
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-24 12:15:44 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-24 12:17:03 -0200
commit5eb99ec9fae6b6ff077559b3feab8565701f2635 (patch)
tree11e43cb2c18a5f1432afe1a174592e7daf7e5a48 /etc/rc.start_packages
parente2edc30daa39e1e71015ce49e26b4374a960ad04 (diff)
downloadpfsense-5eb99ec9fae6b6ff077559b3feab8565701f2635.zip
pfsense-5eb99ec9fae6b6ff077559b3feab8565701f2635.tar.gz
Make sure functions called by rc.start_packages can see $g['booting'] when we are booting
Diffstat (limited to 'etc/rc.start_packages')
-rwxr-xr-xetc/rc.start_packages7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.start_packages b/etc/rc.start_packages
index 3d30587..57de379 100755
--- a/etc/rc.start_packages
+++ b/etc/rc.start_packages
@@ -41,6 +41,10 @@ require_once("service-utils.inc");
log_error("Restarting/Starting all packages.");
setup_library_paths();
+/* Detect if we are booting */
+if (file_exists("{$g['varrun_path']}/booting"))
+ $g['booting'] = true;
+
$rcfiles = glob(RCFILEPREFIX . "*.sh");
if (!$rcfiles)
$rcfiles = array();
@@ -72,4 +76,7 @@ if ($shell) {
pclose($shell);
}
+/* done */
+unset($g['booting']);
+
?>
OpenPOWER on IntegriCloud