OXIESEC PANEL
- Current Dir:
/
/
lib
/
udev
Server IP: 82.112.239.19
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/20/2025 01:49:09 AM
r-xr-xr-x
📄
ata_id
19.45 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📄
cdrom_id
31.59 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📄
dmi_memory_id
27.54 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📄
fc_wwpn_id
1.11 KB
01/04/2021 06:17:04 AM
rwxr-xr-x
📄
fido_id
23.44 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📁
hwdb.d
-
04/09/2025 07:08:44 PM
rwxr-xr-x
📄
kdump-udev-throttler
1.41 KB
11/12/2024 02:39:44 PM
rwxr-xr-x
📄
kpartx_id
2.33 KB
10/02/2024 07:55:51 PM
rwxr-xr-x
📄
libinput-device-group
19.13 KB
08/02/2023 02:42:31 PM
rwxr-xr-x
📄
libinput-fuzz-extract
15.13 KB
08/02/2023 02:42:31 PM
rwxr-xr-x
📄
libinput-fuzz-to-zero
15.13 KB
08/02/2023 02:42:31 PM
rwxr-xr-x
📄
mtd_probe
15.41 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📄
prefixdevname
1.45 MB
03/25/2022 03:11:18 PM
rwxr-xr-x
📄
rename_device
15.34 KB
11/14/2024 05:04:06 PM
rwxr-xr-x
📁
rules.d
-
04/09/2025 07:11:41 PM
rwxr-xr-x
📄
scsi_id
36.14 KB
03/18/2025 04:14:51 AM
rwxr-xr-x
📄
v4l_id
15.41 KB
03/18/2025 04:14:51 AM
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