2011-09-25, 21:51
Hello,
here an attempt to facilitate latest night build install....
It download the index page from mirror web,
then strip the html code and take the first line.
If the proposed selection is accepted the it start the download and finally install the build.
A.
Refence:
http://wiki.xbmc.org/index.php?title=How...Apple_TV_2
here an attempt to facilitate latest night build install....
Code:
AppleTV:~ root# cat upgrade.sh
mirror_url=http://mirrors.xbmc.org/nightlies/darwin/atv2
null=$(/usr/bin/wget $mirror_url 2>&1)
$(grep master index.html | sed -e :a -e 's/<[^>]*>//g;/</N;//ba' > index.txt)
namefile=$(head -1 index.txt | cut -f2 -d\ )
while true; do
read -p "Do you want to upgrade to '$namefile' ?(y/n)" yn
case $yn in
[Yy]* ) wget $mirror_url/$namefile ; dpkg -i $namefile ; rm $namefile ; break;;
[Nn]* ) break ;;
* ) echo "Please answer yes or no.";;
esac
done
$(rm index.txt ; rm index.html)
AppleTV:~ root#
It download the index page from mirror web,
then strip the html code and take the first line.
If the proposed selection is accepted the it start the download and finally install the build.
A.
Refence:
http://wiki.xbmc.org/index.php?title=How...Apple_TV_2