From 6d7a2b12e10bfeec9788ff377e6915831d6a2f5d Mon Sep 17 00:00:00 2001 From: Xinyan Lu Date: Tue, 3 Oct 2023 20:50:30 +0800 Subject: [PATCH] feat: support owc device --- cmd/config/toggleAirport.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/config/toggleAirport.sh b/cmd/config/toggleAirport.sh index b75b9c1..8079c98 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.*|AX88179A.*|Thunderbolt Ethernet Slot.*|Thunderbolt Ethernet Slot 0), Device: (en.*)\)$/\2/p'` +eth_names=`networksetup -listnetworkserviceorder | sed -En 's/^\(Hardware Port: (.*Ethernet|USB 10.*|AX88179A.*|Thunderbolt Ethernet Slot.*|Thunderbolt Ethernet Slot 0|Thunderbolt Ethernet OWC|Thunderbolt Ethernet *), Device: (en.*)\)$/\2/p'` air_name=`networksetup -listnetworkserviceorder | sed -En 's/^\(Hardware Port: (Wi-Fi|AirPort), Device: (en.)\)$/\2/p'` # Determine previous ethernet status