19 lines
236 B
Bash
19 lines
236 B
Bash
|
#!/bin/sh
|
||
|
if [ -z "$1" ]; then
|
||
|
echo do-kernel-remove.sh KVERSION
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
VER=$1
|
||
|
BASEDIR=$(dirname $0)
|
||
|
|
||
|
source $BASEDIR/kernel
|
||
|
|
||
|
EMERGE=""
|
||
|
|
||
|
for package in ${PACKAGES}; do
|
||
|
EMERGE="$EMERGE =${package}-${VER}"
|
||
|
done
|
||
|
|
||
|
emerge -c $EMERGE
|