diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2010-10-26 14:48:22 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-10-26 14:48:22 -0700 |
commit | 40461ef6ea9325b0dd1262cd3b99ffcbcf69dfd6 (patch) | |
tree | f1ef54222a2296bbed7103a2db1e44529e95d3a9 /scripts/add_bootfile_eth_hwid | |
parent | 7dc4ac0cb122bc98f903f93fc83e93007de7c751 (diff) | |
parent | 3e0d01a69b7f70977375ab73a51cfc5004813065 (diff) | |
download | vyatta-cfg-system-40461ef6ea9325b0dd1262cd3b99ffcbcf69dfd6.tar.gz vyatta-cfg-system-40461ef6ea9325b0dd1262cd3b99ffcbcf69dfd6.zip |
Merge branch 'mendocino' of http://git.vyatta.com/vyatta-cfg-system into mendocino
Diffstat (limited to 'scripts/add_bootfile_eth_hwid')
-rwxr-xr-x | scripts/add_bootfile_eth_hwid | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/add_bootfile_eth_hwid b/scripts/add_bootfile_eth_hwid deleted file mode 100755 index 61deea56..00000000 --- a/scripts/add_bootfile_eth_hwid +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# add ethnet interface sub-block to configure file - -shopt -s extglob - -if [[ "$*" == *--help* ]] ; then - echo ${0##*/} [test_]FILE INTERFACE HWID - exit 0 -fi - -if [[ "$1" == test_* ]] ; then - origfile=$1 - bootfile=/tmp/${1##*/}_$$ - cp $origfile $bootfile - trap "diff -c $origfile $bootfile; rm -f $bootfile; exit 0" $? -else - origfile= - bootfile=$1 -fi -eth=$2 -hwid=$3 - -sed -i '/^interfaces {$/,/^}$/ { - /^}$/i\ - ethernet '"$eth"' {\ - hw-id '"$hwid"'\ - } - }' $bootfile |