PATCH_VERSION="2.6.16.20-$PATCHSET"
TMP=${TMP:=/tmp}
SRC_DIR=${SRC:=$CWD}
+REPOS=${REPOS:=$TMP}
if [ ! -z "$EXTRAVERSION" ]; then
KERNEL_VERSION=$KERNEL_VERSION.$EXTRAVERSION
( cd boot && ln -s config-$KERNEL_VERSION config )
( cd boot && ln -s System.map-$KERNEL_VERSION System.map)
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi
TMP=${TMP:=/tmp}
SRC_DIR=${SRC:=$CWD}
SPLASH="/etc/bootsplash/themes/Slack-Black-Tux/config/bootsplash-1024x768.cfg"
+REPOS=${REPOS:=$TMP}
cat << EOCAT
Just remembering, you need the following stuff installed:
splash -s -f $SPLASH > $PKG/boot/initrd.gz
cd $PKG
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
cat << EOCAT
Please check if you need to build or install the following modules:
Have a nice day.
EOCAT
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi
+
PATCH_VERSION="2.6.16.20-$PATCHSET"
TMP=${TMP:=/tmp}
SRC_DIR=${SRC:=$CWD}
+REPOS=${REPOS:=$TMP}
if [ ! -z "$EXTRAVERSION" ]; then
KERNEL_VERSION=$KERNEL_VERSION.$EXTRAVERSION
( cd boot && ln -s config-$KERNEL_VERSION config )
( cd boot && ln -s System.map-$KERNEL_VERSION System.map)
-makepkg -c y -l y $TMP/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+makepkg -c y -l y $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz
+
+if [ "$CLEANUP" == "yes" ]; then
+ rm -rf $TMP
+fi