Remove config_exists function from glean.sh

I can't see how this does anything, so remove the dead code.

Change-Id: Ib90c1b4ad26e7b27640ce26f231606beebbe2730
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-12 15:04:57 -04:00
parent 549ae8b869
commit b67d463ecb
1 changed files with 0 additions and 20 deletions

View File

@ -19,26 +19,6 @@ set -o pipefail
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
function config_exists() {
local interface=$1
if [ "$CONF_TYPE" == "netscripts" ]; then
if [ -f "/etc/sysconfig/network-scripts/ifcfg-$interface" ]; then
return 0
fi
# Gentoo: return the value of grep -q INTERFACE in the config file, if it exists
elif [[ -a /etc/gentoo-release ]]; then
if [[ -a /etc/conf.d/net ]]; then
# the '=' is needed so eth0 doesn't match on eth0.1
grep -q "${interface}=" /etc/conf.d/net* || return 1
else
return 1
fi
else
ifquery "${interface}" >/dev/null 2>&1 && return 0 || return 1
fi
return 1
}
# NOTE(mnaser): Depending on the cloud, it may have `vfat` config drive which
# comes with a capitalized label rather than all lowercase.
if blkid -t LABEL="config-2" ; then