From ca67bbf9f632ad376c729246c83880557acbbade Mon Sep 17 00:00:00 2001 From: Yuan Bai Date: Tue, 5 Sep 2017 17:05:04 +0800 Subject: [PATCH] fix confignetwork_static_installnic failure on ubuntu (#3846) --- xCAT/postscripts/configeth | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index fa147ef06..35a1e6c89 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -534,8 +534,7 @@ elif [ "$1" = "-s" ];then parse_nic_extra_params "$str_extra_params" fi - # Bring the interface down before cofniguring the interface - ifdown $str_inst_nic + # cofniguring the interface if [ -f "/etc/debian_version" ];then str_conf_file="/etc/network/interfaces.d/${str_inst_nic}" @@ -641,7 +640,7 @@ elif [ "$1" = "-s" ];then fi fi - ifup $str_inst_nic + ifdown $str_inst_nic;ifup $str_inst_nic if [ $? -ne 0 ]; then log_error "ifup $str_inst_nic failed." error_code=1