aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-10-30 08:32:24 +0100
committerGitHub <noreply@github.com>2019-10-30 08:32:24 +0100
commitd93f8f6f0a57305231a702c9ddd50fc409144e5e (patch)
tree6daf3898271a7179de0c5097304c76c064a73e90 /network-scripts/ifup-eth
parent5ea3a3b9aa715605bc1fb86e8f54abbedff899d2 (diff)
downloadinitscripts-d93f8f6f0a57305231a702c9ddd50fc409144e5e.tar
initscripts-d93f8f6f0a57305231a702c9ddd50fc409144e5e.tar.gz
initscripts-d93f8f6f0a57305231a702c9ddd50fc409144e5e.tar.bz2
initscripts-d93f8f6f0a57305231a702c9ddd50fc409144e5e.tar.xz
initscripts-d93f8f6f0a57305231a702c9ddd50fc409144e5e.zip
ifup-eth: Check that device name is set
Resolve rhbz#1743249
Diffstat (limited to 'network-scripts/ifup-eth')
-rwxr-xr-xnetwork-scripts/ifup-eth5
1 files changed, 5 insertions, 0 deletions
diff --git a/network-scripts/ifup-eth b/network-scripts/ifup-eth
index 68f8a0bf..b49af168 100755
--- a/network-scripts/ifup-eth
+++ b/network-scripts/ifup-eth
@@ -110,6 +110,11 @@ if [ -n "${TEAM_CONFIG}" ] && [ ! "${DEVICETYPE}" = "Team" ] && [ -x ./ifup-Team
./ifup-Team ${CONFIG} $2
fi
+if [ -z "${REALDEVICE}" ]; then
+ net_log $"Device name does not seem to be present."
+ exit 1
+fi
+
# now check the real state
is_available_wait ${REALDEVICE} ${DEVTIMEOUT} || {
if [ -n "$alias" ]; then