summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-03 14:27:15 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-03 14:27:24 -0400
commit5f8e5e1460ba685c6f6ca95b37dde614aae20299 (patch)
tree8ef11962b1d5f30a7f685249edae4f96ce6d5cc4 /etc/rc.initial
parentae660b3ce7d7e2b1f34cb9f1b52eb4ce21e17c42 (diff)
downloadpfsense-5f8e5e1460ba685c6f6ca95b37dde614aae20299.zip
pfsense-5f8e5e1460ba685c6f6ca95b37dde614aae20299.tar.gz
Launch rc.local into &
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-xetc/rc.initial7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index 523ac62..e6c5de2 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -24,8 +24,11 @@ if [ -f "/tmp/donotbootup" ]; then
fi
if [ -f /etc/rc.local ]; then
- echo ">>> Launching rc.local"
- sh /etc/rc.local
+ RCLOCALPWD=`ps awux | grep sendmail | grep -v grep | awk '{ print $2 }'`
+ if [ "$RCLOCALPWD" = "" ]; then
+ echo ">>> Launching rc.local in background..."
+ sh /etc/rc.local &
+ fi
fi
CONFIG="/cf/conf/config.xml"
OpenPOWER on IntegriCloud