aboutsummaryrefslogtreecommitdiffstats
path: root/network-scripts
diff options
context:
space:
mode:
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 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