From 4c31892eb4adc926a4301a2831ded92daa75c991 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Tue, 15 Jan 2008 20:59:06 -0800 Subject: fix for bug 2534 and prep for larson's vif link detect fixes --- scripts/add_bootfile_eth_hwid | 1 - scripts/mod_bootfile_eth_hwid | 1 - scripts/vyatta_net_name | 1 - 3 files changed, 3 deletions(-) (limited to 'scripts') diff --git a/scripts/add_bootfile_eth_hwid b/scripts/add_bootfile_eth_hwid index 2a9cc69c..a315a103 100755 --- a/scripts/add_bootfile_eth_hwid +++ b/scripts/add_bootfile_eth_hwid @@ -25,6 +25,5 @@ sed -i '/^interfaces {$/,/^}$/ { /^}$/i\ ethernet '"$eth"' {\ hw-id: '"$hwid"'\ - link-detect\ } }' $bootfile diff --git a/scripts/mod_bootfile_eth_hwid b/scripts/mod_bootfile_eth_hwid index b913d121..51b2c022 100755 --- a/scripts/mod_bootfile_eth_hwid +++ b/scripts/mod_bootfile_eth_hwid @@ -27,7 +27,6 @@ sed -i '/^interfaces {$/,/^}$/ { /\n }$/ { /hw-id: / s/\(hw-id:\) [0-9a-fA-F:]\+/\1 '"$hwid"'/ /hw-id: /! s/}$/ hw-id: '"$hwid"'\n }/ - /link-detect/! s/}$/ link-detect\n }/ b } N diff --git a/scripts/vyatta_net_name b/scripts/vyatta_net_name index 43c71c1d..e048800e 100755 --- a/scripts/vyatta_net_name +++ b/scripts/vyatta_net_name @@ -107,7 +107,6 @@ for name_hwid in ${cfg_net_hwid[@]} ; do last_ethn=$ethn if [ "$hwid" == "$attr_address" ] ; then # we mod the config file interface sub-clock in case it is missing - # "link-detect" [[ "$BOOTFILE" != *test_* ]] && \ ${vyatta_sbindir}/mod_bootfile_eth_hwid $BOOTFILE $name $attr_address echo $name -- cgit v1.2.3