aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-08-19 12:53:16 +0200
committerGitHub <noreply@github.com>2019-08-19 12:53:16 +0200
commit14a96086a9ae9f4517c5150b9f336d1ee4ef52ce (patch)
tree60fbadf9e183c538839b30731f6691b129b5a53c
parent533cd7289d500bfdc50d9b71544d888662b0cb92 (diff)
downloadinitscripts-14a96086a9ae9f4517c5150b9f336d1ee4ef52ce.tar
initscripts-14a96086a9ae9f4517c5150b9f336d1ee4ef52ce.tar.gz
initscripts-14a96086a9ae9f4517c5150b9f336d1ee4ef52ce.tar.bz2
initscripts-14a96086a9ae9f4517c5150b9f336d1ee4ef52ce.tar.xz
initscripts-14a96086a9ae9f4517c5150b9f336d1ee4ef52ce.zip
ifup-eth: Check that device name is set
-rwxr-xr-xsysconfig/network-scripts/ifup-eth5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index ab59244a..1a9866c1 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -107,6 +107,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