diff options
-rwxr-xr-x | modules.d/80cms/cmssetup.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules.d/80cms/cmssetup.sh b/modules.d/80cms/cmssetup.sh index 16704c34..36955bc3 100755 --- a/modules.d/80cms/cmssetup.sh +++ b/modules.d/80cms/cmssetup.sh @@ -182,7 +182,19 @@ function dasd_settle_all() { unset _do_zfcp for i in ${!FCP_*}; do - echo "${!i}" >> /etc/zfcp.conf + echo "${!i}" | while read port rest; do + case $port in + *.*.*) + ;; + *.*) + port="0.$port" + ;; + *) + port="0.0.$port" + ;; + esac + echo $port $rest >> /etc/zfcp.conf + done _do_zfcp=1 done [[ $_do_zfcp ]] && zfcp_cio_free |