Enlevé variable SSID redondante pour wpa (le SSID est le nom du fichier)
[hvlinux.git] / stage2 / pkg / linux
index 71e7574..a3ee9f5 100644 (file)
@@ -1,10 +1,14 @@
 #!/bin/bash
 
-HV_NO_CONFIGURE_SCRIPT=1
-
 hvbuild()
 {
-    # The kernel sources were already copied into /usr/src in stage0
+    # Check if kernel sources from stage0 are still in /usr/src.
+    # If not, recopy them.
+    if [ ! -d /usr/src/${PACKAGE} ]; then
+        cp -a ${LFS_TMP}/${PACKAGE} /usr/src
+    fi
+
+    # Install headers
     cd /usr/src/${PACKAGE}
     make mrproper
     make headers_check