Code

Made gotoBootKernel default to "default" when newly created
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 31 Aug 2006 06:11:03 +0000 (06:11 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 31 Aug 2006 06:11:03 +0000 (06:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4550 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationStartup.inc

index 52947234dd52ed52984b231ee240a0236baecadb..1b5be31a7078c28e63eb26fe85af06efbbfdc21d 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 class workstartup extends plugin
 {
   /* CLI vars */
@@ -341,6 +342,11 @@ class workstartup extends plugin
       }
     }
 
+    /* Turn to default, if we've nothing to inherit */
+    if (!isset($this->gotoBootKernels['default-inherited']) && $this->gotoBootKernel == "default-inherited"){
+      $this->gotoBootKernel= "default";
+    }
+
     if(count($this->FAIclass)==0 && $this->FAIrelease == ""){
       $this->FAIdebianMirror = "inherited";
     }