xiringuito/scripts/darwin/get-network-service-name.sh
2017-02-20 07:14:38 +01:00

6 lines
156 B
Bash
Executable File

#!/usr/bin/env bash
#
# Get name of the MacOSX network service (device connection)
#
networksetup -listnetworkserviceorder | grep '^(1) ' | sed 's/^(1) //'