aboutsummaryrefslogtreecommitdiffstats
path: root/testing/scripts
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-05-29 22:29:59 +0200
committerMartin Willi <martin@revosec.ch>2015-07-12 13:54:08 +0200
commit2a75c6e487d0a0a85de8139fc4af35d26bdcf31b (patch)
tree48a388760c596355a96c47442c59a655d94e6f19 /testing/scripts
parenta4a13d0be29b716663e48c406c265cc6c07c6414 (diff)
downloadstrongswan-2a75c6e487d0a0a85de8139fc4af35d26bdcf31b.tar.bz2
strongswan-2a75c6e487d0a0a85de8139fc4af35d26bdcf31b.tar.xz
testing: Do not overwrite kernel configuration if it already exists
This allows us to do changes to the kernel configuration using menuconfig and friends, and update the kernel with make-testing.
Diffstat (limited to 'testing/scripts')
-rwxr-xr-xtesting/scripts/build-guestkernel5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/scripts/build-guestkernel b/testing/scripts/build-guestkernel
index f7f3cce61..0c38b7b98 100755
--- a/testing/scripts/build-guestkernel
+++ b/testing/scripts/build-guestkernel
@@ -43,7 +43,10 @@ then
fi
fi
-execute "cp $KERNELCONFIG .config" 0
+if [ ! -f .config ]
+then
+ execute "cp $KERNELCONFIG .config" 0
+fi
echo "Creating kernel configuration, you might get prompted for new parameters"
make oldconfig 2>&1 | tee -a $LOGFILE