2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

fixes #708: confignics -s now brings the interface down, before the config is applied

This commit is contained in:
Arif Ali 2016-03-04 13:12:30 +00:00
parent 5fa692543d
commit c7b0cb4116

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