aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-05 22:06:04 +0000
committerBill Nottingham <notting@redhat.com>1999-04-05 22:06:04 +0000
commit9a9d2dd38d7963d81168205990cb7e8d09075ade (patch)
treee0083c3f685a9a71d0aa83ece2fff3c8b300d603 /sysconfig/network-scripts
parentffa38e5c3af046d9c580df3b2550d60bf819d23e (diff)
downloadinitscripts-9a9d2dd38d7963d81168205990cb7e8d09075ade.tar
initscripts-9a9d2dd38d7963d81168205990cb7e8d09075ade.tar.gz
initscripts-9a9d2dd38d7963d81168205990cb7e8d09075ade.tar.bz2
initscripts-9a9d2dd38d7963d81168205990cb7e8d09075ade.tar.xz
initscripts-9a9d2dd38d7963d81168205990cb7e8d09075ade.zip
fix for $PARENTDEVNAME
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index db1d9f8c..e5175e01 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -7,7 +7,7 @@ source_config ()
if basename $CONFIG | grep -q '[^g]-' ; then
PARENTCONFIG=`echo $CONFIG | sed 's/-[^-]*$//g'`
- PARENTDEVNAME=`echo $PARENTCONFIG | sed 's/^ifcfg-//g'`
+ PARENTDEVNAME=`basename $PARENTCONFIG | sed 's/^ifcfg-//g'`
[ -f $PARENTCONFIG ] || {
echo "Missing config file $PARENTCONFIG." >&2
exit 1