From 2d7b5f8bcbfd2de0657062b0dfc0d78645f8f9cc Mon Sep 17 00:00:00 2001 From: Dan HorĂ¡k Date: Wed, 21 Apr 2010 10:43:32 +0200 Subject: implement waiting on devices specified on command line --- device_cio_free | 8 ++++++++ 1 file changed, 8 insertions(+) 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:" -- cgit