0 Replies Latest reply: Oct 7, 2012 6:44 PM by Jade Curtis
Jade Curtis Level 1 Level 1 (80 points)

What might be a command I can use to get the network name and then use it setup network settings

This the script I have so far, when running it nothing happen

 

Networkport="networksetup -listallnetworkservices"

if [[ "$Networkport" == *"ethernet"* ]]; then

          networksetup -setv6off "Ethernet"

          echo "IPv6 is OFF"

fi

exit 0;