Skip to content

Commit

Permalink
feat: support owc device
Browse files Browse the repository at this point in the history
  • Loading branch information
lxy1992 committed Oct 3, 2023
1 parent c710586 commit 6d7a2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config/toggleAirport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d7a2b1

Please sign in to comment.