repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove some unneeded 'exit 0' from bash scripts
[lcapit-junk-code.git]
/
kernel-rm
blob
f7d97fcb9452c74388fcb9123afcc5ea7dfe4c81
1
#!/bin/sh
2
3
KERNV
=
$1
4
5
if
[
"
$KERNV
"
==
"*"
];
then
6
echo
"Are you crazy dude?"
7
exit
1
8
fi
9
10
rm
-rf
/
lib
/
modules
/
$KERNV
11
12
pushd
/
boot
1
> /
dev
/
null
13
rm
-f
config-
$KERNV
initrd-
$KERNV
.img
{,
.old
}
kernel.h-
$KERNV
14
rm
-f
System.map-
$KERNV
vmlinuz-
$KERNV