diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-12-24 12:42:45 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-12-24 12:42:45 -0200 |
commit | 47493bd326cd7141df7df708b69e10479ed800af (patch) | |
tree | 0a3fed511ac5f48334b0182e31c8b3e5ba9ee41c /etc/rc.start_packages | |
parent | 8a461f41db7907b310171b6e0fb901b2f5e7e2fe (diff) | |
download | pfsense-47493bd326cd7141df7df708b69e10479ed800af.zip pfsense-47493bd326cd7141df7df708b69e10479ed800af.tar.gz |
Only unset $g['booting'] when it was set here
Diffstat (limited to 'etc/rc.start_packages')
-rwxr-xr-x | etc/rc.start_packages | 7 |
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']); ?> |