Code

Temporary disable bootmode settings
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 16:23:18 +0000 (16:23 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 6 Nov 2008 16:23:18 +0000 (16:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12945 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc

index ceaf0cf2371ed23db85def291988f2286fd05ea1..82c7b691559817586f21abf692859b82ca38b9df 100644 (file)
@@ -7,7 +7,9 @@ class workstartup extends plugin
   var $gotoLdap_inherit   = FALSE;
 
   /* Generic terminal attributes */
-  var $bootmode             = "G";
+       # This is disabled as long there is no possiblilty to set these parameters
+  #var $bootmode             = "G";
+  var $bootmode             = "";
   var $gotoBootKernel       = "default-inherited";
   var $gotoKernelParameters = "";
   var $gotoLdapServer       = "default-inherited";
@@ -155,15 +157,15 @@ class workstartup extends plugin
     }
 
     /* Parse Kernel Parameters to decide what boot mode is enabled */
-    if (preg_match("/ splash=silent/", $this->gotoKernelParameters)){
-      $this->bootmode= "G";
-    } elseif (preg_match("/ debug/", $this->gotoKernelParameters)){
-      $this->bootmode= "D";
-    } elseif ($this->gotoKernelParameters == "") {
-      $this->bootmode= "G";
-    } else {
-      $this->bootmode= "T";
-    }
+    #if (preg_match("/ splash/", $this->gotoKernelParameters)){
+    #  $this->bootmode= "G";
+    #} elseif (preg_match("/ debug/", $this->gotoKernelParameters)){
+    #  $this->bootmode= "D";
+    #} elseif ($this->gotoKernelParameters == "") {
+    #  $this->bootmode= "G";
+    #} else {
+    #  $this->bootmode= "T";
+    #}
     if (preg_match("/ o /", $this->gotoKernelParameters)){
       $this->customParameters= preg_replace ("/^.* o /", "", $this->gotoKernelParameters);
     } else {
@@ -808,19 +810,20 @@ class workstartup extends plugin
     }
 
     /* Add semi automatic values */
-    // FIXME: LDAP Server may not be set here...
-    $this->gotoKernelParameters= "ldap=".base64_encode($this->gotoLdapServer);
+    $this->gotoKernelParameters= "";
 
     switch ($this->bootmode){
       case "D":
         $this->gotoKernelParameters.= " debug";
       break;
       case "G":
-        $this->gotoKernelParameters.= " splash=silent";
+        $this->gotoKernelParameters.= " splash quiet";
       break;
     }
     if ($this->customParameters != ""){
-      $this->gotoKernelParameters.= " o ".$this->customParameters;
+                       # This should be enabled after boot-mode is available again
+      #$this->gotoKernelParameters.= " o ".$this->customParameters;
+      $this->gotoKernelParameters= $this->customParameters;
     }
 
     plugin::save();