nowucca.com - personal software technology blog

I drag around my MacBook Pro to different networks every day.

Sometimes, there are hassles connecting to a network, wired or wifi.

This little script can be used to kick the network interfaces a little bit to potentially fix strange states they find themselves in:

1
2
3
4
5
6
<br />
$ for if in $(ifconfig -l)<br />
do<br />
  sudo ifconfig $if down<br />
  sudo ifconfig $if up<br />
done<br />