You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
339 B
19 lines
339 B
#!/bin/bash
|
|
|
|
version=5.1.8
|
|
url=https://mirrors.edge.kernel.org/pub/linux/daemons/autofs/v5/patches-5.1.9
|
|
|
|
cd patches
|
|
wget -N $url/patch_order_$version
|
|
i=0
|
|
cat patch_order_$version | while read p; do
|
|
case "$p" in
|
|
*.patch)
|
|
i=$((i+1))
|
|
t=$(printf "%04d\n" $i)-$p
|
|
if [ ! -f $t ]; then
|
|
wget -O $t $url/$p
|
|
fi
|
|
;;
|
|
esac
|
|
done
|
|
|