From: Michael Tremer Date: Fri, 25 May 2012 09:16:54 +0000 (+0000) Subject: hotplugging: Check if the device has vanished in the meantime. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d4e23097869548c11caa97e86c9faadb5dfacf2;p=people%2Fstevee%2Fnetwork.git hotplugging: Check if the device has vanished in the meantime. However, sometimes the rename script gets called and shortly after that the device vanishes. --- diff --git a/functions.device b/functions.device index 238cb06a..09ba33ed 100644 --- a/functions.device +++ b/functions.device @@ -560,7 +560,9 @@ function device_hotplug() { shift assert isset device - assert device_exists ${device} + + # Just check if the device has already vanished. + device_exists ${device} || return ${EXIT_ERROR} if ! device_is_free ${device}; then log ERROR "The device '${device}' is in use."