summaryrefslogtreecommitdiff
path: root/etc/init.d/vyatta-ofr
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2008-01-22 16:07:27 -0800
committerTom Grennan <tgrennan@vyatta.com>2008-01-22 16:07:27 -0800
commit85b14c8232b1e59ce9bb42bb69935f2349823b96 (patch)
treeb3483c19c28cb6d251015cf106a981032759d4ca /etc/init.d/vyatta-ofr
parent068559d17467e255537f7327e2cf10431dbf7620 (diff)
downloadvyatta-cfg-85b14c8232b1e59ce9bb42bb69935f2349823b96.tar.gz
vyatta-cfg-85b14c8232b1e59ce9bb42bb69935f2349823b96.zip
only rescan interfaces if vyatta udev script is installed
Diffstat (limited to 'etc/init.d/vyatta-ofr')
-rwxr-xr-xetc/init.d/vyatta-ofr13
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