From 5a40f59be9214821e150cff8232cebde54bc6012 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Thu, 24 Jun 2010 04:11:49 +0100 Subject: tools to clean vlans and run our old install script --- tools/clean-vlans | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 tools/clean-vlans (limited to 'tools') 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 -- cgit