OS X Command line control the WiFi interface
networksetup -setairportpower airport off networksetup -setairportpower airport on networksetup -setairportpower en0 on
networksetup -setairportpower airport off networksetup -setairportpower airport on networksetup -setairportpower en0 on