#!/bin/bash # Copyright (C) 2011 Wizardry and Steamworks. # # Licensed to Wizardry and Steamworks under # the GPLv3 GNU License which can be found at: # http://www.gnu.org/licenses/gpl.html # ETH=`ifconfig | grep flags | awk 'BEGIN { FS=":" } { print $1 }'` for et in $ETH; do HW=$(printf "%s:%s:%s:%s:%s:%s\n" `jot -r -w "%02x" 6 0 99`) ( /sbin/ifconfig $et up; /sbin/ifconfig $et ether $HW 2>&1 | true ) & done