diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-12-24 12:15:44 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-12-24 12:15:44 -0200 |
commit | 8a461f41db7907b310171b6e0fb901b2f5e7e2fe (patch) | |
tree | 3047db288208f46354c12355c29c9386ee5e9a3c /etc/rc.start_packages | |
parent | 72a95734e3430616a2bf389126032eb67a1d9a87 (diff) | |
download | pfsense-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-x | etc/rc.start_packages | 7 |
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']); + ?> |