diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-07-07 15:04:57 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-07-07 15:04:57 -0400 |
commit | 2339012560b8091903247f2d14429062adda45e8 (patch) | |
tree | e0e38b378399957a732967e4444ac3d0b32a1db6 /etc | |
parent | 27173eadb8b98560847d836736266a46770ea8f6 (diff) | |
download | pfsense-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-x | etc/rc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |