summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-01-21 18:08:42 -0800
committerTom Grennan <tgrennan@vyatta.com>2008-01-21 18:08:42 -0800
commit31d8f4539b68b3e65b0d98bce0d564705ffa1992 (patch)
treefd34813400ab01fb3f4747f9e8b6d968d84ac0b5
parente9802462f494208cc8469013a69be306e40a4929 (diff)
downloadvyatta-cfg-31d8f4539b68b3e65b0d98bce0d564705ffa1992.tar.gz
vyatta-cfg-31d8f4539b68b3e65b0d98bce0d564705ffa1992.zip
fix bug 2658
force udev rescan w/in vyatta-ofr init so that we can update interface list in config file *after* filesystem is writable
-rwxr-xr-xetc/init.d/vyatta-ofr10
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr
index aab2023..6c4b475 100755
--- a/etc/init.d/vyatta-ofr
+++ b/etc/init.d/vyatta-ofr
@@ -103,10 +103,18 @@ load_bootfile ()
start ()
{
- log_daemon_msg "Starting Vyatta Router"
+ log_daemon_msg "Mounting Vyatta Config"
mount -o nosuid,nodev,mode=775 -t tmpfs none ${vyatta_configdir}
chgrp ${GROUP} ${vyatta_configdir}
init_bootfile
+ log_end_msg $?
+ log_daemon_msg "Rescan Network Interfaces"
+ ( udevtrigger --verbose --subsystem-match=net && udevsettle ) | \
+ while read itf ; do
+ log_progress_msg ${itf##*/}
+ done
+ log_end_msg $?
+ log_daemon_msg "Starting Vyatta Router"
migrate_bootfile
for s in ${subinit[@]} ; do
log_progress_msg $s