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:15:44 -0200
commit8a461f41db7907b310171b6e0fb901b2f5e7e2fe (patch)
tree3047db288208f46354c12355c29c9386ee5e9a3c /etc/rc.start_packages
parent72a95734e3430616a2bf389126032eb67a1d9a87 (diff)
downloadpfsense-8a461f41db7907b310171b6e0fb901b2f5e7e2fe.zip
pfsense-8a461f41db7907b310171b6e0fb901b2f5e7e2fe.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