diff options
author | Dan Horák <dan@danny.cz> | 2010-06-29 22:17:57 +0200 |
---|---|---|
committer | Dan Horák <dan@danny.cz> | 2010-06-29 22:17:57 +0200 |
commit | 23941c50cac2c35b21f1cb32bec7228c01078866 (patch) | |
tree | 7aa3b9b7f187e7cda1d61977eff1932c3f4703c7 /device_cio_free | |
parent | eddf0ad86cc669e37eb1f5a5044c161d14763181 (diff) | |
download | utils-23941c50cac2c35b21f1cb32bec7228c01078866.tar.gz utils-23941c50cac2c35b21f1cb32bec7228c01078866.tar.xz utils-23941c50cac2c35b21f1cb32bec7228c01078866.zip |
return a placeholder when no config file exists
Diffstat (limited to 'device_cio_free')
-rw-r--r-- | device_cio_free | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device_cio_free b/device_cio_free index 84e7468..b9fd252 100644 --- a/device_cio_free +++ b/device_cio_free @@ -292,7 +292,7 @@ if [ $MODE_ZNET ]; then fi for line in $(LANG=C grep -E -i -h \ "^[[:space:]]*SUBCHANNELS=['\"]?([0-9]\.[0-9]\.[a-f0-9]+,){1,2}([0-9]\.[0-9]\.[a-f0-9]+)['\"]?([[:space:]]+#|[[:space:]]*$)" \ - $(ls /etc/sysconfig/network-scripts/ifcfg-* | LC_ALL=C sed -e "$__sed_discard_ignored_files") 2> /dev/null) + $( (ls /etc/sysconfig/network-scripts/ifcfg-* 2> /dev/null || echo "__no_config_file") | LC_ALL=C sed -e "$__sed_discard_ignored_files") 2> /dev/null) do eval "$line" free_device $SUBCHANNELS |