Browse Source

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

Fabio Arnold 9 years ago
parent
commit
c8a4d494ac
1 changed files with 2 additions and 1 deletions
  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