From c7b0cb4116278be2e6de2fe5293389c1fc690a53 Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Fri, 4 Mar 2016 13:12:30 +0000 Subject: [PATCH] fixes #708: confignics -s now brings the interface down, before the config is applied --- xCAT/postscripts/configeth | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index b8f95ae81..915d5e840 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -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