OXIESEC PANEL
- Current Dir:
/
/
lib
/
udev
Server IP: 103.185.75.71
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2026 04:30:28 PM
r-xr-xr-x
📄
ata_id
19.27 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📄
cdrom_id
31.42 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📄
dmi_memory_id
27.36 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📄
fc_wwpn_id
1.11 KB
01/04/2021 06:17:04 AM
rwxr-xr-x
📄
fido_id
23.27 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📁
hwdb.d
-
12/27/2025 09:18:15 AM
rwxr-xr-x
📄
kdump-udev-throttler
1.41 KB
08/15/2025 07:54:02 AM
rwxr-xr-x
📄
kpartx_id
2.33 KB
06/24/2025 01:12:01 PM
rwxr-xr-x
📄
mtd_probe
15.23 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📄
prefixdevname
1.45 MB
03/25/2022 03:11:18 PM
rwxr-xr-x
📄
rename_device
15.17 KB
05/14/2025 02:50:08 PM
rwxr-xr-x
📁
rules.d
-
12/27/2025 09:18:28 AM
rwxr-xr-x
📄
scsi_id
35.95 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
📄
v4l_id
15.23 KB
11/04/2025 12:03:30 PM
rwxr-xr-x
Editing: fc_wwpn_id
Close
#!/usr/bin/bash # # fc_wwpn_id # # Generates device node names links based on FC WWPN # 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 # Free Software Foundation version 2 of the License. # DEVPATH=$1 SCSIPATH=$(cd -P "/sys$DEVPATH/device" || exit; echo "$PWD") d=$SCSIPATH [ -d "$d/scsi_disk" ] || exit 0 target_lun=${d##*:} while [ -n "$d" ] ; do d=${d%/*} e=${d##*/} case "$e" in rport*) rport=$e rport_dir="/sys/class/fc_remote_ports/$rport" if [ -d "$rport_dir" ] ; then rport_wwpn=$(cat "$rport_dir/port_name") fi ;; host*) host=$e host_dir="/sys/class/fc_host/$host" if [ -d "$host_dir" ] ; then host_wwpn=$(cat "$host_dir/port_name") break; fi esac done 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" fi if [ -n "$host_wwpn" ] ; then echo "FC_INITIATOR_WWPN=$host_wwpn" fi