#!/bin/bash
# Run ifconfig first,
# Then list the names of all the ifcfg-xxx files
#
#  network_dir is  "/etc/sysconfig/network-scripts/" for RedHat
#              but "/etc/sysconfig/network/"         for MCP
#
#     10/10/2003   TF   Add network_dir - needed for dual RedHat/MCP support
#     10/28/2005   TF   Add -a to ifconfig; prevent 00:00:00:00 MAC addresses in NetworkSettings logic

network_dir=$1

/sbin/ifconfig -a
echo '***RESULTS OF LS COMMAND***'

ls -1 "$network_dir"ifcfg-*
shift
