diff --git a/cmd/config/toggleAirport.sh b/cmd/config/toggleAirport.sh index b07ad18..f4dec54 100755 --- a/cmd/config/toggleAirport.sh +++ b/cmd/config/toggleAirport.sh @@ -33,7 +33,7 @@ prev_air_status="Off" eth_status="Off" # Grab the names of the adapters. We assume here that any ethernet connection name ends in "Ethernet" -eth_names=`networksetup -listnetworkserviceorder | sed -En 's/^\(Hardware Port: (.*Ethernet|USB 10.*), Device: (en.)\)$/\2/p'` +eth_names=`networksetup -listnetworkserviceorder | sed -En 's/^\(Hardware Port: (.*Ethernet|USB 10.*|AX88179A.*), Device: (en.)\)$/\2/p'` air_name=`networksetup -listnetworkserviceorder | sed -En 's/^\(Hardware Port: (Wi-Fi|AirPort), Device: (en.)\)$/\2/p'` # Determine previous ethernet status