diff options
author | Jan Macku <jamacku@redhat.com> | 2019-08-19 12:53:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 12:53:16 +0200 |
commit | 14a96086a9ae9f4517c5150b9f336d1ee4ef52ce (patch) | |
tree | 60fbadf9e183c538839b30731f6691b129b5a53c | |
parent | 533cd7289d500bfdc50d9b71544d888662b0cb92 (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifup-eth | 5 |
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 |