diff options
author | Bill Nottingham <notting@redhat.com> | 2006-03-17 16:49:23 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2006-03-17 16:49:23 +0000 |
commit | 467c9f2225475b4f9970734a1749bf808fc5a056 (patch) | |
tree | 409ccf5a982f61ea5e72ffd11e21bbb2c6dfd0f4 /sysconfig | |
parent | cfdef129c2d6c01b5050e5a763ba300762c644ec (diff) | |
download | initscripts-467c9f2225475b4f9970734a1749bf808fc5a056.tar initscripts-467c9f2225475b4f9970734a1749bf808fc5a056.tar.gz initscripts-467c9f2225475b4f9970734a1749bf808fc5a056.tar.bz2 initscripts-467c9f2225475b4f9970734a1749bf808fc5a056.tar.xz initscripts-467c9f2225475b4f9970734a1749bf808fc5a056.zip |
don't hang if we try to rename a device that's already up
Diffstat (limited to 'sysconfig')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 1 |
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 |