2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #775 from arif-ali/fix_configeth

fixes #708, first try at getting the confignics -s fixing
This commit is contained in:
Xiaopeng Wang 2016-03-04 22:46:04 +08:00
commit db81b5659d

View File

@ -502,6 +502,9 @@ elif [ "$1" = "-s" ];then
parse_nic_extra_params "$str_extra_params"
fi
# Bring the interface down before cofniguring the interface
ifdown $str_inst_nic
if [ -f "/etc/debian_version" ];then
str_conf_file="/etc/network/interfaces.d/${str_inst_nic}"
echo "auto ${str_inst_nic}" > $str_conf_file
@ -596,6 +599,7 @@ elif [ "$1" = "-s" ];then
fi
fi
fi
ifup $str_inst_nic
exit 0
fi