aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 9d591beb..d2372d00 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -176,6 +176,7 @@ rename_device()
local nconfig=`get_config_by_hwaddr ${hw2}`
local curdev=`get_device_by_hwaddr ${hw2}`
local dev=
+ [ -z "${hw2}" ] && return
if [ -n "$nconfig" ]; then
dev=$(. $nconfig ; echo $DEVICE)
oldifs=$IFS