aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1997-10-06 14:02:50 +0000
committerErik Troan <ewt@redhat.com>1997-10-06 14:02:50 +0000
commiteb8f922413432017fb1ead7db9dd2a56b0054bc6 (patch)
tree26d16229081cd079c0c6d2a8c3bb0a9f64815913 /sysconfig
parent0b84439c8c3d02b3530c1009aff40ceffb7f5dc7 (diff)
downloadinitscripts-eb8f922413432017fb1ead7db9dd2a56b0054bc6.tar
initscripts-eb8f922413432017fb1ead7db9dd2a56b0054bc6.tar.gz
initscripts-eb8f922413432017fb1ead7db9dd2a56b0054bc6.tar.bz2
initscripts-eb8f922413432017fb1ead7db9dd2a56b0054bc6.tar.xz
initscripts-eb8f922413432017fb1ead7db9dd2a56b0054bc6.zip
fixes for config files which were given w/ fully qualified pathnames
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index f637c7ee..c45c8467 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -3,10 +3,10 @@
source_config ()
{
- DEVNAME=`echo $CONFIG | sed 's/^ifcfg-//g'`
+ DEVNAME=`basename $CONFIG | sed 's/^ifcfg-//g'`
. $CONFIG
- if echo $CONFIG | grep -q '[^g]-' ; then
+ if basename $CONFIG | grep -q '[^g]-' ; then
PARENTCONFIG=`echo $CONFIG | sed 's/-[^-]*$//g'`
PARENTDEVNAME=`echo $PARENTCONFIG | sed 's/^ifcfg-//g'`
[ -f $PARENTCONFIG ] || {