summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-13 03:28:21 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-13 03:28:21 +0000
commita6abbd66613da63bd4bccef7b6c2128645a0b2e8 (patch)
tree582b4556d0c377292b136f36364472346975c8b8
parentd819989afb70a1b569674ee9d51e5aec004d308e (diff)
downloadpfsense-a6abbd66613da63bd4bccef7b6c2128645a0b2e8.zip
pfsense-a6abbd66613da63bd4bccef7b6c2128645a0b2e8.tar.gz
Move rc.linkup operations to check_reload_status to avoid race conditions.
-rw-r--r--etc/devd.conf4
-rwxr-xr-xetc/rc.bootup14
2 files changed, 14 insertions, 4 deletions
diff --git a/etc/devd.conf b/etc/devd.conf
index 47d7759..847f6f5 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -15,12 +15,12 @@ options {
notify 0 {
match "type" "LINK_UP";
media-type "ethernet";
- action "/bin/echo -n '$subsystem ' >>/tmp/rc.linkup";
+ action "/bin/echo -n '$subsystem start ' >>/tmp/rc.linkup";
};
notify 0 {
match "type" "LINK_DOWN";
media-type "ethernet";
- action "/bin/echo -n '$subsystem ' >>/tmp/rc.linkup";
+ action "/bin/echo -n '$subsystem stop ' >>/tmp/rc.linkup";
};
# When a USB keyboard arrives, attach it as the console keyboard.
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 7f86de5..189a00b 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -48,6 +48,10 @@
require_once("config.inc");
require_once("functions.inc");
+
+ /* get system memory amount */
+ $memory = get_memory();
+ $avail = $memory[0];
/* start devd (dhclient now uses it */
echo "Starting device manager (devd)... ";
@@ -180,8 +184,14 @@
//unmute_kernel_msgs();
echo "done.\n";
- /* start web server */
- system_webgui_start();
+ if($avail > 0 and $avail < 65) {
+ echo "System has less than 64 megabytes of ram. Delaying webConfigurator startup...\n";
+ /* start webConfigurator up on final pass */
+ touch("/tmp/restart_webgui");
+ } else {
+ /* start web server */
+ system_webgui_start();
+ }
/* start OpenVPN server & clients */
ovpn_configure(false);
OpenPOWER on IntegriCloud