403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/tests/sys/cddl/zfs/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/tests/sys/cddl/zfs/bin/zpool_bsd
#!/usr/local/bin/ksh93 -p
#

# $FreeBSD: releng/12.4/tests/sys/cddl/zfs/bin/zpool_bsd.ksh 331613 2018-03-27 11:49:15Z avg $

cmd=$1

if [[ -z $cmd ]]; then
	return 0
fi

shift


typeset option
case $cmd in
	create|add|attach|detach|replace|remove|online|offline|clear)
		for arg in $@; do
			if [[ $arg == "/dev/"* ]]; then
				arg=${arg#/dev/}
				arg="/dev/"$arg
			fi
			if [[ $arg == "/dev/"* ]]; then
				echo $arg | egrep "*s[0-9]$" > /dev/null 2>&1
				if [ $? -eq 0 ]
				then
					n=`echo $arg| wc -c`
					set -A map a b c d e f g h i j
					s=`echo $arg | cut -c $((n-1))`
					arg=${arg%s[0-9]}${map[$s]}
				fi
			fi

			option="${option} $arg"
		done
		;;
	*)
		option="$@"
		;;
esac

echo $cmd $option

Youez - 2016 - github.com/yon3zu
LinuXploit