diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2021-01-04 06:17:04 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2021-01-04 06:17:04 +0000 |
commit | 6a2fe0f14972e955e466a0d36f3a8b1d15dc3fcc (patch) | |
tree | 11f749ae8399d179dda5d6c84a7f842957c45ad3 /scripts | |
parent | 2f7e361640305f7bfa1addb5c8419562a45676a7 (diff) | |
download | sg3_utils-6a2fe0f14972e955e466a0d36f3a8b1d15dc3fcc.tar.gz |
sg_raw: add --cmdset option to bypass cdb heuristic, add --scan= first_opcode,last_opcode; bug fixes
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@872 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/fc_wwpn_id | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/fc_wwpn_id b/scripts/fc_wwpn_id index c8d01892..17c74fe8 100644 --- a/scripts/fc_wwpn_id +++ b/scripts/fc_wwpn_id @@ -3,7 +3,7 @@ # fc_wwpn_id # # Generates device node names links based on FC WWPN -# Copyright (c) 2016 Hannes Reinecke, SUSE Linux GmbH +# Copyright (c) 2016-2021 Hannes Reinecke, SUSE Linux GmbH # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -38,7 +38,9 @@ while [ -n "$d" ] ; do esac done -echo "FC_TARGET_LUN=$target_lun" +if [ -n "$rport_wwpn" ] || [ -n "$host_wwpn" ] ; then + echo "FC_TARGET_LUN=$target_lun" +fi if [ -n "$rport_wwpn" ] ; then echo "FC_TARGET_WWPN=$rport_wwpn" |