Merge "Remove disable_interface from dhcp-all-interfaces"

This commit is contained in:
Jenkins 2014-09-03 20:44:15 +00:00 committed by Gerrit Code Review
commit f4ba47467b
1 changed files with 1 additions and 17 deletions

View File

@ -46,22 +46,6 @@ function enable_interface() {
}
function disable_interface() {
local interface=$1
serialize_me
if [ "$CONF_TYPE" == "netscripts" ]; then
local IFCFG_FILE="/etc/sysconfig/network-scripts/ifcfg-$interface"
if [ -f "$IFCFG_FILE" ]; then
rm $IFCFG_FILE
else
echo "No link detected, skipping"
fi
else
echo "No link detected, skipping"
fi
}
function config_exists() {
local interface=$1
if [ "$CONF_TYPE" == "netscripts" ]; then
@ -100,7 +84,7 @@ function inspect_interface() {
if [ "$HAS_LINK" == "1" ] ; then
enable_interface "$interface"
else
disable_interface "$interface"
echo "No link detected, skipping"
fi
fi