home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
rescue
/
etc
/
sysconfig
/
network
/
scripts
/
check_configurations
next >
Wrap
Text File
|
2006-11-29
|
602b
|
21 lines
#! /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