]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
testing: Do not overwrite kernel configuration if it already exists
authorMartin Willi <martin@revosec.ch>
Fri, 29 May 2015 20:29:59 +0000 (22:29 +0200)
committerMartin Willi <martin@revosec.ch>
Sun, 12 Jul 2015 11:54:08 +0000 (13:54 +0200)
This allows us to do changes to the kernel configuration using menuconfig
and friends, and update the kernel with make-testing.

testing/scripts/build-guestkernel

index f7f3cce61c44cfe21d9ad222ff5cf522369e9977..0c38b7b984846c5995cecc2c12cb8cc5ccbbe853 100755 (executable)
@@ -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