#!/bin/bash

usage="
        Usage: $(basename "$0") [-h]
      Example: $(basename "$0")
Functionality: It lists all Wi-Fi interfaces.

      Options:
	-h		Show usage information
"

#if [[ $UID == 0 ]]; then
#	(>&2 echo "DO NOT run with sudo.")
#	echo "$usage"
#	exit 1
#fi

while getopts 'h' OPT; do
    case $OPT in
        h)
            echo "$usage"
			exit 1
    esac
done

scriptDir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"

${scriptDir}/GetPhyPathMapping | grep -Eo "PHY:\S+" | sed "s/PHY://g"

