jcampanaaxa
1/7/2016 - 8:17 AM

Manage connection interfaces

Manage connection interfaces

#Manage interfaces
wifi(){
  networksetup -switchtolocation "Wifi"
  networksetup -setairportpower en1 on
  echo "Outgoing interface: WIFI"
}

ethernet(){
  networksetup -setairportpower en1 off
  networksetup -switchtolocation "Ethernet"
  echo "Outgoing interface: Ethernet"
}