aboutsummaryrefslogtreecommitdiff
path: root/sys/kernel/kernel-satan/kernel-satan.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kernel/kernel-satan/kernel-satan.SlackBuild')
-rwxr-xr-xsys/kernel/kernel-satan/kernel-satan.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/kernel/kernel-satan/kernel-satan.SlackBuild b/sys/kernel/kernel-satan/kernel-satan.SlackBuild
index 960019dd..b91eea6c 100755
--- a/sys/kernel/kernel-satan/kernel-satan.SlackBuild
+++ b/sys/kernel/kernel-satan/kernel-satan.SlackBuild
@@ -59,7 +59,7 @@ if [ ! -f "$SRC_DIR/$KERNEL" ]; then
wget "$KERNEL_URL.sign" -O "$SRC_DIR/$KERNEL.sign" || exit $ERROR_WGET
fi
-if [ ! -f "$SRC_DIR/$PATCH" ]; then
+if [ ! -f "$SRC_DIR/$PATCH" ] || [ ! -f "$CWD/$PATCH" ]; then
wget "$PATCH_URL" -O "$SRC_DIR/$PATCH" || exit $ERROR_WGET
fi
@@ -78,7 +78,11 @@ fi
cp $CWD/config-$KERNEL_VERSION linux-$KERNEL_VERSION/.config || exit $ERROR_CONF
cd linux-$KERNEL_VERSION
-patch -p1 < $SRC_DIR/$PATCH || exit $ERROR_PATCH
+if [ -f "$CWD/$PATCH" ]; then
+ patch -p1 < $CWD/$PATCH || exit $ERROR_PATCH
+else
+ patch -p1 < $SRC_DIR/$PATCH || exit $ERROR_PATCH
+fi
if [ ! -z "$EXTRAVERSION" ] && [ ! -z "$PATCHSET" ]; then
sed -e "s/^EXTRAVERSION =*$/EXTRAVERSION = \.$EXTRAVERSION-$PATCHSET/" Makefile > Makefile.tmp