Skip to content

Instantly share code, notes, and snippets.

View luponata's full-sized avatar

Matteo N luponata

  • Milan, Italy
View GitHub Profile
@consolewitch
consolewitch / get_eth_device_from_adapter_number.sh
Last active April 3, 2018 17:26
get_eth_device_from_adapter_number.sh
#! /bin/bash
###
# Written by Alex N. Speaks
# Takes the position in which a NIC appears in the vmware console as an argument.
# Returns the ethernet device name that corresponds to that position number.
# Position numbers start at 0
# You can think of this as the old-style ethX number
NIC_INDEX=$1