diff options
author | Dan Horák <dan@danny.cz> | 2010-04-21 10:43:32 +0200 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2010-04-21 10:43:32 +0200 |
commit | 2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc (patch) | |
tree | b33d598c18929a4f33752520879c7a9b6ca15436 | |
parent | 1f469816273add2b2903b3abd67c5007c5e75475 (diff) | |
download | utils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.tar.gz utils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.tar.xz utils-2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc.zip |
implement waiting on devices specified on command line
-rw-r--r-- | device_cio_free | 8 |
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:" |