wok-next diff linux-source/stuff/get-linux-source @ rev 15185
linux-source: add mirror src fallback
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 23 18:59:48 2013 +0000 (2013-08-23) |
parents | f15c857e3e67 |
children | df406884857b |
line diff
1.1 --- a/linux-source/stuff/get-linux-source Fri May 24 11:52:29 2013 +0200 1.2 +++ b/linux-source/stuff/get-linux-source Fri Aug 23 18:59:48 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