wok-4.x rev 12404
linux-source: add mirror src fallback
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 27 11:32:39 2013 +0000 (2013-08-27) |
parents | f661cecd3b06 |
children | dcca55b1a10e |
files | linux-source/stuff/get-linux-source |
line diff
1.1 --- a/linux-source/stuff/get-linux-source Thu Aug 22 08:57:32 2013 +0200 1.2 +++ b/linux-source/stuff/get-linux-source Tue Aug 27 11:32:39 2013 +0000 1.3 @@ -11,6 +11,9 @@ 1.4 url=$(echo $url | sed "s|.*/linux/kernel|$i/linux/kernel|") 1.5 done 1.6 1.7 +mirror_src=http://mirror.slitaz.org/sources/packages-$(cat /etc/slitaz-release) 1.8 +busybox wget -s $url || url=$mirror_src/l/$(basename $url) 1.9 + 1.10 if [ ! -d $SOURCES_REPOSITORY ]; then 1.11 mkdir -p $SOURCES_REPOSITORY 1.12 fi