Need #ifdef because path var doesnt even exist if not set
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 26 Jun 2014 21:29:40 +0000 (14:29 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 26 Jun 2014 21:29:40 +0000 (14:29 -0700)
kern/src/init.c

index bd8074c..dfe5375 100644 (file)
@@ -117,6 +117,7 @@ void kernel_init(multiboot_info_t *mboot_info)
 #endif
 }
 
+#ifdef CONFIG_RUN_INIT_SCRIPT
 static int run_init_script(void)
 {
        /* If we have an init script path specified */
@@ -161,6 +162,7 @@ static int run_init_script(void)
        }
        return -1;
 }
+#endif
 
 /*
  * Panic is called on unresolvable fatal errors.