Public domain
#!/bin/bash
echo -n "News date: "
date +'%F %T'
echo -n "Latest 2.6 kernel is: "
curl --connect-timeout 10 --max-time 70 http://www.kernel.org/pub/linux/kernel/v2.6/ 2> /dev/null |\
grep LATEST-IS | sed -e 's,.*LATEST-IS-,,' -e 's,<.*,,'
echo -n "Latest 2.4 kernel is: "
curl --connect-timeout 10 --max-time 70 http://www.kernel.org/pub/linux/kernel/v2.4/ 2> /dev/null |\
grep LATEST-IS | sed -e 's,.*LATEST-IS-,,' -e 's,<.*,,'
#!/bin/bash
date
K2_6=$(links -dump http://www.kernel.org/pub/linux/kernel/v2.6/ | grep LATEST-IS | awk '{print$1}' | sed -e 's,LATEST-IS-,,')
wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-${K2_6}.tar.bz2
BY: Pejman Moghadam
TAG: bash, bash-script, kernel, curl
DATE: 2009-05-22 17:29:24