chiark
/
gitweb
/
~cjwatson
/
bin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40311ab
)
get-kernel: Only move 'linux' out of the way if it exists as a symbolic
author
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Thu, 7 Nov 2002 15:58:38 +0000
(15:58 +0000)
committer
Colin Watson
<cjwatson@chiark.greenend.org.uk>
Thu, 7 Nov 2002 15:58:38 +0000
(15:58 +0000)
link.
get-kernel
patch
|
blob
|
history
diff --git
a/get-kernel
b/get-kernel
index bd9b91691946e91ec97372b36f0d0692484b830b..a936122dfc6b4efbbd7ff67118e7786759f55432 100755
(executable)
--- a/
get-kernel
+++ b/
get-kernel
@@
-11,5
+11,5
@@
MAJOR="${1%.*}"
rm -f linux
wget -c "ftp://ftp.kernel.org/pub/linux/kernel/v$MAJOR/linux-$VERSION.tar.bz2"
tar xjvf "linux-$VERSION.tar.bz2"
-mv linux "linux-$VERSION"
+if [ -h linux ]; then mv linux "linux-$VERSION"; fi
ln -s "linux-$VERSION" linux