Remove some unneeded 'exit 0' from bash scripts
[lcapit-junk-code.git] / kernel-rm
blobf7d97fcb9452c74388fcb9123afcc5ea7dfe4c81
1 #!/bin/sh
3 KERNV=$1
5 if [ "$KERNV" == "*" ]; then
6 echo "Are you crazy dude?"
7 exit 1
8 fi
10 rm -rf /lib/modules/$KERNV
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