aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-08-19 10:26:18 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2019-08-19 12:01:11 +0200
commitc060c55bd62a18f5563cc30c894d07b0ec1be497 (patch)
tree1cea574ffbef13eb70a2b1d9a3ea4aef2748282f /network-scripts
parent4e99e0e4c7e592fb9ddfe48165422e12593281a0 (diff)
downloadinitscripts-c060c55bd62a18f5563cc30c894d07b0ec1be497.tar
initscripts-c060c55bd62a18f5563cc30c894d07b0ec1be497.tar.gz
initscripts-c060c55bd62a18f5563cc30c894d07b0ec1be497.tar.bz2
initscripts-c060c55bd62a18f5563cc30c894d07b0ec1be497.tar.xz
initscripts-c060c55bd62a18f5563cc30c894d07b0ec1be497.zip
ifup-eth: Check that device name is set
Diffstat (limited to 'network-scripts')
-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 95db3e60..9448eae7 100755
--- a/network-scripts/ifup-eth
+++ b/network-scripts/ifup-eth
@@ -112,6 +112,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