summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-07 15:04:57 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-07 15:04:57 -0400
commit2339012560b8091903247f2d14429062adda45e8 (patch)
treee0e38b378399957a732967e4444ac3d0b32a1db6 /etc
parent27173eadb8b98560847d836736266a46770ea8f6 (diff)
downloadpfsense-2339012560b8091903247f2d14429062adda45e8.zip
pfsense-2339012560b8091903247f2d14429062adda45e8.tar.gz
On bootup check to see if rc.newwanip is excuting and if so, delay for 5 seconds until it is finished. This works around the silly bug in 1.2.X:
Warning: no access to tty (Inappropriate ioctl for device). Thus no job control in this shell.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 340cc49..75eea7e 100755
--- a/etc/rc
+++ b/etc/rc
@@ -317,13 +317,18 @@ nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status &
# Start ping handler for every 240 seconds
minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
-echo "Bootup complete"
-
/usr/local/bin/beep.sh start 2>&1 >/dev/null
# Reset the cache. read-only requires this.
rm /tmp/config.cache
+while [ "`ps awwux | grep -v grep | grep rc.newwanip`" ]; do
+ echo "Delaying startup while rc.newwanip finishes" | logger
+ sleep 5
+done
+
/etc/rc.conf_mount_ro
+echo "Bootup complete"
+
exit 0
OpenPOWER on IntegriCloud