Last active
December 22, 2015 15:08
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
lipc-set-prop com.lab126.cmd wirelessEnable 1 | |
sleep 20 | |
url=http://insertyourownURLhere.com | |
rm index | |
# get list of images to download | |
wget $url/images/index || error_exit "Cannot download list of images!" | |
grep "/img/uploads" index | awk -F\" '{print $2}' > images.txt | |
# download all queued images into pics/ folder | |
cd pics | |
while read line | |
do | |
wget $url$line | |
done < ../images.txt | |
# mark all images as downloaded, do not download them again | |
wget $url/images/reset | |
rm reset | |
lipc-set-prop com.lab126.cmd wirelessEnable 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment