summaryrefslogtreecommitdiffstats
path: root/etc/rc.start_packages
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-24 12:42:45 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-24 12:43:10 -0200
commit73abb573feae03b164d3ed4284db4ed4ff26a256 (patch)
treea76f7bbc3aeafb031d12c0d0b4344d0cdc379223 /etc/rc.start_packages
parent5eb99ec9fae6b6ff077559b3feab8565701f2635 (diff)
downloadpfsense-73abb573feae03b164d3ed4284db4ed4ff26a256.zip
pfsense-73abb573feae03b164d3ed4284db4ed4ff26a256.tar.gz
Only unset $g['booting'] when it was set here
Diffstat (limited to 'etc/rc.start_packages')
-rwxr-xr-xetc/rc.start_packages7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.start_packages b/etc/rc.start_packages
index 57de379..1bb8da3 100755
--- a/etc/rc.start_packages
+++ b/etc/rc.start_packages
@@ -42,8 +42,10 @@ log_error("Restarting/Starting all packages.");
setup_library_paths();
/* Detect if we are booting */
-if (file_exists("{$g['varrun_path']}/booting"))
+if (!isset($g['booting']) && file_exists("{$g['varrun_path']}/booting")) {
$g['booting'] = true;
+ $unset_g_booting = true;
+}
$rcfiles = glob(RCFILEPREFIX . "*.sh");
if (!$rcfiles)
@@ -77,6 +79,7 @@ if ($shell) {
}
/* done */
-unset($g['booting']);
+if ($unset_g_booting)
+ unset($g['booting']);
?>
OpenPOWER on IntegriCloud