diff options
Diffstat (limited to 'network-scripts')
-rwxr-xr-x | network-scripts/ifup-eth | 5 |
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 |