diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-07-03 14:27:15 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-07-03 14:27:24 -0400 |
commit | 5f8e5e1460ba685c6f6ca95b37dde614aae20299 (patch) | |
tree | 8ef11962b1d5f30a7f685249edae4f96ce6d5cc4 /etc/rc.initial | |
parent | ae660b3ce7d7e2b1f34cb9f1b52eb4ce21e17c42 (diff) | |
download | pfsense-5f8e5e1460ba685c6f6ca95b37dde614aae20299.zip pfsense-5f8e5e1460ba685c6f6ca95b37dde614aae20299.tar.gz |
Launch rc.local into &
Diffstat (limited to 'etc/rc.initial')
-rwxr-xr-x | etc/rc.initial | 7 |
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" |