ipseckey: Properly handle failure to create a certificate
[strongswan.git] / testing / scripts / build-guestkernel
index 2fbe658..66a9fe7 100755 (executable)
@@ -1,12 +1,15 @@
 #!/bin/bash
 
-. $PWD/scripts/function.sh
+DIR=$(dirname `readlink -f $0`)
+. $DIR/../testing.conf
+. $DIR/function.sh
 
 echo "Building guest kernel version $KERNELVERSION"
 
 [ -f "$KERNELCONFIG" ] || die "Kernel config $KERNELCONFIG not found"
 
-mkdir -p $BUILDDIR
+check_commands bunzip2 bzcat make wget
+
 cd $BUILDDIR
 
 if [ ! -f "$KERNELTARBALL" ]