diff options
| author | Bill Nottingham <notting@redhat.com> | 2006-03-17 16:48:56 +0000 |
|---|---|---|
| committer | Bill Nottingham <notting@redhat.com> | 2006-03-17 16:48:56 +0000 |
| commit | e610427d049989b94a29443d0c26ae657d420475 (patch) | |
| tree | 48b29d674567b5fa36d97f747a245407855f9639 /sysconfig/network-scripts | |
| parent | 83eab4b6c2f6fd31a9631121dacabbc8a5187416 (diff) | |
don't hang if we get EBUSY (i.e., trying to rename a device that's up)
Diffstat (limited to 'sysconfig/network-scripts')
| -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 |
