Merge "Remove disable_interface from dhcp-all-interfaces"
This commit is contained in:
commit
f4ba47467b
1 changed files with 1 additions and 17 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue