diff options
author | Bill Nottingham <notting@redhat.com> | 2001-07-11 19:08:30 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-07-11 19:08:30 +0000 |
commit | 89dc8d4b510e5f99df4492748e1979d065e9be7a (patch) | |
tree | 41cebeed1cd9eef44374b8ecef9ef7937bb98b4d /sysconfig/network-scripts/network-functions | |
parent | 0cb462135bc4125475444116231328606ea6cba3 (diff) | |
download | initscripts-89dc8d4b510e5f99df4492748e1979d065e9be7a.tar initscripts-89dc8d4b510e5f99df4492748e1979d065e9be7a.tar.gz initscripts-89dc8d4b510e5f99df4492748e1979d065e9be7a.tar.bz2 initscripts-89dc8d4b510e5f99df4492748e1979d065e9be7a.tar.xz initscripts-89dc8d4b510e5f99df4492748e1979d065e9be7a.zip |
move looking for config files into network-functions (#48741)
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index fef6259d..b8529800 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -1,6 +1,16 @@ # This is not a shell script; it provides functions to network scripts # that source it. +need_config() +{ + [ -f "${CONFIG}" ] || \ + CONFIG=../networking/`current_profile`/${1} + [ -f "${CONFIG}" ] || \ + CONFIG=../networking/`current_profile`/ifcfg-${1} + [ -f "${CONFIG}" ] || \ + CONFIG="ifcfg-${1}" +} + source_config () { DEVNAME=`basename $CONFIG | sed 's/^ifcfg-//g'` |