summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Horák <dan@danny.cz>2010-04-21 10:43:32 +0200
committerDan Horák <dan@danny.cz>2010-04-21 10:43:32 +0200
commit2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc (patch)
treeb33d598c18929a4f33752520879c7a9b6ca15436
parent1f469816273add2b2903b3abd67c5007c5e75475 (diff)
downloadutils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.tar.gz
utils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.tar.xz
utils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.zip
implement waiting on devices specified on command line
-rw-r--r--device_cio_free8
1 files changed, 8 insertions, 0 deletions
diff --git a/device_cio_free b/device_cio_free
index 87d31ee..b5f9514 100644
--- a/device_cio_free
+++ b/device_cio_free
@@ -211,6 +211,14 @@ if [ ! -f $BLACKLIST ]; then
exit 2
fi
+if [ "$DEVICE" ]; then
+ [ $VERBOSE ] && echo "Freeing specific devices"
+ for DEV in $DEVICE; do
+ free_device $DEV
+ done
+ wait_on_devices
+ exit 0
+fi
if [ $VERBOSE ]; then
echo -n "Freeing devices:"