summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-16 20:06:38 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-16 20:06:38 +0000
commit4bee86729f13edd6bbcf4a364c0152b6d8d9d9d1 (patch)
treebcc18dfb670774a473ee8cf1575b94e6ef15f64a /etc
parent3591d6c09ada53939320d8dde7a527f16bc1da1b (diff)
downloadpfsense-4bee86729f13edd6bbcf4a364c0152b6d8d9d9d1.zip
pfsense-4bee86729f13edd6bbcf4a364c0152b6d8d9d9d1.tar.gz
Hard code paths to /etc/inc files on bootup.
If for some reason php.ini gets whiped out on bootup then you will never be able to boot again. This works around that issues and ensures that we atleast can bootup to the point where php.ini gets written back out. Many many wasted hours on this issue.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.bootup8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.bootup b/etc/rc.bootup
index dd2815c..6d18662 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -35,7 +35,7 @@
echo "Initializing...";
echo ".";
- require_once("globals.inc");
+ require_once("/etc/inc/globals.inc");
echo ".";
/* let the other functions know we're booting */
$pkg_interface = 'console';
@@ -47,9 +47,9 @@
}
/* parse the configuration and include all functions used below */
- require_once("config.inc");
+ require_once("/etc/inc/config.inc");
echo ".";
- require_once("functions.inc");
+ require_once("/etc/inc/functions.inc");
/* get system memory amount */
$memory = get_memory();
$avail = $memory[0];
@@ -301,7 +301,7 @@
mwexec($config['system']['afterbootupshellcmd']);
if($avail < 126) {
- require_once("notices.inc");
+ require_once("/etc/inc/notices.inc");
file_notice("pfSenseMemoryRequirements", "pfSense requires atleast 128 megabytes of RAM. Expect unusual performance. This platform is not supported.", "Memory", "", 1);
}
OpenPOWER on IntegriCloud