diff options
author | Jan Macku <jamacku@redhat.com> | 2019-10-30 08:32:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-30 08:32:24 +0100 |
commit | d93f8f6f0a57305231a702c9ddd50fc409144e5e (patch) | |
tree | 6daf3898271a7179de0c5097304c76c064a73e90 /network-scripts | |
parent | 5ea3a3b9aa715605bc1fb86e8f54abbedff899d2 (diff) | |
download | initscripts-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')
-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 |