diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2008-01-22 16:07:27 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2008-01-22 16:07:27 -0800 |
commit | 85b14c8232b1e59ce9bb42bb69935f2349823b96 (patch) | |
tree | b3483c19c28cb6d251015cf106a981032759d4ca | |
parent | 068559d17467e255537f7327e2cf10431dbf7620 (diff) | |
download | vyatta-cfg-85b14c8232b1e59ce9bb42bb69935f2349823b96.tar.gz vyatta-cfg-85b14c8232b1e59ce9bb42bb69935f2349823b96.zip |
only rescan interfaces if vyatta udev script is installed
-rwxr-xr-x | etc/init.d/vyatta-ofr | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index 5950651..21fcc36 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -108,13 +108,12 @@ start () chgrp ${GROUP} ${vyatta_configdir} log_action_end_msg $? 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 $? + if [ -e /lib/udev/vyatta_net_name ] ; then + log_daemon_msg "Rescan Network Interfaces" + ( udevtrigger --verbose --subsystem-match=net && udevsettle ) | \ + while read itf ; do log_progress_msg ${itf##*/} ; done + log_end_msg $? + fi log_daemon_msg "Starting Vyatta Router" migrate_bootfile for s in ${subinit[@]} ; do |