diff options
| author | Jesse Andrews <anotherjesse@gmail.com> | 2010-06-24 04:11:49 +0100 |
|---|---|---|
| committer | andy <github@anarkystic.com> | 2010-06-24 04:11:49 +0100 |
| commit | 5a40f59be9214821e150cff8232cebde54bc6012 (patch) | |
| tree | a2240067a05a6fb04d8107bf4158be1a6edb5950 /tools | |
| parent | a57ae2808fd983f4f5e36a0b5cac527f54b72265 (diff) | |
tools to clean vlans and run our old install script
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/clean-vlans | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/clean-vlans b/tools/clean-vlans new file mode 100755 index 000000000..39010ba1d --- /dev/null +++ b/tools/clean-vlans @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +sudo ifconfig -a | grep br | grep -v bridge | cut -f1 -d" " | xargs -n1 -ifoo ifconfig foo down +sudo ifconfig -a | grep br | grep -v bridge | cut -f1 -d" " | xargs -n1 -ifoo brctl delbr foo +sudo ifconfig -a | grep vlan | grep -v vlan124 | grep -v vlan5 | cut -f1 -d" " | xargs -n1 -ifoo ifconfig foo down +sudo ifconfig -a | grep vlan | grep -v vlan124 | grep -v vlan5 | cut -f1 -d" " | xargs -n1 -ifoo vconfig rem foo |
