diff options
author | Dan Horák <dan@danny.cz> | 2010-03-25 15:53:11 +0100 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2010-03-25 15:53:11 +0100 |
commit | 16fd0c1cc2bf0d5f75f9d286fde834cf25593acc (patch) | |
tree | 0077bef4362d81feedd4788a22c4b865fa1c7476 | |
parent | 7d6c34c3256c24124368b411f31bdb657f60764c (diff) | |
download | utils-16fd0c1cc2bf0d5f75f9d286fde834cf25593acc.tar.gz utils-16fd0c1cc2bf0d5f75f9d286fde834cf25593acc.tar.xz utils-16fd0c1cc2bf0d5f75f9d286fde834cf25593acc.zip |
fix subchannels regex for znet config file
-rw-r--r-- | device_cio_free | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/device_cio_free b/device_cio_free index 92bad0e..8378999 100644 --- a/device_cio_free +++ b/device_cio_free @@ -168,8 +168,8 @@ if [ $MODE = "znet" ]; then \#*) ;; *) [ -z "$line" ] && continue - # grep 2 or 3 channels from beginning of each line - DEVICES=$(echo $line | grep -E -i -o "^([0-9]\.[0-9]\.[a-f0-9]+,){1,2}([0-9]\.[0-9]\.[a-f0-9]+)") + # grep 2 or 3 channels from each "<nettype>,<subchannels>,<options>" line + DEVICES=$(echo $line | grep -E -i -o "([0-9]\.[0-9]\.[a-f0-9]+,){1,2}([0-9]\.[0-9]\.[a-f0-9]+)") free_device $DEVICES ;; esac |