#! /bin/bash
#
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.
# All rights reserved.
#
# Author: Christian Zoz <zoz@suse.de>, 2004
# 
# This script checks for all available network interfaces:
# - if there is a configuration for them
# - if we can get back the interface name from the configuration name
#
# $Id: check_configurations 1069 2004-09-02 18:23:18Z zoz $

for a in `cd /sys/class/net; ls -A`; do 
	unset ${!HWD_*}
	eval `getcfg -d /etc/sysconfig/network -f ifcfg- -- $a 2>/dev/null`
	printf "%-9s %-35s " $a $HWD_CONFIG_0
	getcfg-interface -v $HWD_CONFIG_0 2>/dev/null || echo
done

