瀏覽代碼

workaround for missing seq command on nexus 5 phone in port redirection script

Fabio Arnold 9 年之前
父節點
當前提交
c8a4d494ac
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      assets/payload/redirect-ports.sh

+ 2 - 1
assets/payload/redirect-ports.sh

@@ -10,7 +10,8 @@ destination=( 28144 28169 28217 28580 28274 28275 28274 28276 28159 28160 ) # si
 length=${#protocol[@]} # count protocol elements
 
 # for (( i=0; i<$length; i++ ))
-for i in `seq 0 9` # fix for android's annoyingly limited bash
+#for i in `seq 0 9` # fix for android's annoyingly limited bash
+for i in 0 1 2 3 4 5 6 7 8 9 # another fix for devices missing the seq command
 do
 	# echo ${protocol[$i]} ${origin[$i]} ${destination[$i]} # debug