diff options
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
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 ] || { |