From 306cb2b1400e39d23bf5d6b8a1abeb41b4501f72 Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Fri, 3 Aug 2018 16:04:31 +0800 Subject: [PATCH] Fix minor configeth problem on Ubuntu 18.04 --- xCAT/postscripts/configeth | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/configeth b/xCAT/postscripts/configeth index 128784cab..93de9e5a8 100755 --- a/xCAT/postscripts/configeth +++ b/xCAT/postscripts/configeth @@ -650,7 +650,12 @@ elif [ "$1" = "-s" ];then fi if [ "$UPDATENODE" = "1" ] || grep "REBOOT=TRUE" /opt/xcat/xcatinfo >/dev/null 2>&1; then - ifdown $str_inst_nic;ifup $str_inst_nic + if [ "$str_os_type" = "debian" ];then + ifdown --force $str_inst_nic + else + ifdown $str_inst_nic + fi + ifup $str_inst_nic fi if [ $? -ne 0 ]; then log_error "ifup $str_inst_nic failed."