| 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 : /var/packages/ScsiTarget/scripts/ |
Upload File : |
#!/bin/sh
SZD_TMP="$1"
DIR=${SZD_TMP}"/usr/syno/etc"
[ ! -z "$SZD_TMP" ] || exit 0
[ -w "$DIR" ] || /bin/mkdir -p "$DIR"
copy_and_filter_out() {
local pattern=$1 file=$2
[ -r "$file" ] || return 1
/bin/grep -v "$pattern" "$file" > ${SZD_TMP}/${file}
# concate file list for later `ls -l', because the grep command can
# not restore original file stat like mtime.
TMP_LIST="$TMP_LIST $file"
}
copy_and_filter_out "\(username=\|password=\)" /usr/syno/etc/iscsi_target.conf
/bin/ls -l $TMP_LIST >> "$SZD_TMP/grep_files.list"
exit 0