Last active
October 28, 2017 05:28
-
-
Save kolyanok/1ea73573fa74fabf51be2e145141a960 to your computer and use it in GitHub Desktop.
Searching for the firmwares...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#https://gist.github.com/anonymous/76e0ea7d5d928ff45adc9c90bfa89f12 by monsieurxu | |
if [ "$#" -ne 4 ] | |
then | |
echo "Usage: ./huawei.sh s G g threads\nFor example: ./huawei.sh 115 345 0 50" | |
exit 1 | |
fi | |
parallel --jobs $4 "curl --head --silent http://update2.hicloud.com:8180/TDS/data/files/p9/s{1}/G{2}/g{3}/v{4}/f1/full/filelist.xml | grep 200 > /dev/null && echo http://update2.hicloud.com:8180/TDS/data/files/p9/s{1}/G{2}/g{3}/v{4}/f1/full/filelist.xml" ::: $1 ::: $2 ::: $3 ::: {1000..100000} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sar plz upload e5573cs 322 loder file for zong new version