#!/bin/sh
#
# $Id: file_get_files_sysconfig_network,v 1.1.1.1 2005/05/11 09:03:12 gleissner Exp $
#
#
# Project     :  SCPM (System Configuration Profile Management)
# Module      :  SCPM Utilities
# File        :  file_get_files_sysconfig_network
# Description :  Determines sysconfig files for /etc/sysconfig/network
# Author      :  Joachim Gleissner <jg@suse.de>
#
# Copyright 2002-2004 SuSE Linux AG
#           2005 SUSE LINUX Products GmbH
#
# Released under the terms of the GNU General Public License
# (see file COPYRIGHT in project root directory).
#

cd $1/etc/sysconfig/network

echo /etc/sysconfig/network
for i in ifcfg-* ifroute-* ifservices-* routes ; do
    hide=no
    test "${i#*.scpmbackup}" = "$i" || hide=yes
    test "${i#*~}" = "$i" || hide=yes
    test -e "$i" || hide=yes
    test "$i" = "ifcfg-lo" && hide=yes
    test -d "$i" && { hide=yes ; `dirname ${0}`/sysconfig /etc/sysconfig/network/"$i" $1 ; }
    test $hide = no && echo /etc/sysconfig/network/$i
done

exit 0
