Code

Fix problems with empty boot params by partially reverting
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Mar 2009 15:12:35 +0000 (15:12 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 31 Mar 2009 15:12:35 +0000 (15:12 +0000)
previously commits to this file, as proposed by mba.
(Trac: #2298)

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13573 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 134ec25561d0b5f88d1b6e97664acb83e7d54977..4d1eae95178eeb4d55674f218d7f885de763fefb 100644 (file)
@@ -7,9 +7,7 @@ class workstartup extends plugin
   var $gotoLdap_inherit   = FALSE;
 
   /* Generic terminal attributes */
-       # This is disabled as long there is no possiblilty to set these parameters
-  #var $bootmode             = "G";
-  var $bootmode             = "";
+  var $bootmode             = "G";
   var $gotoBootKernel       = "default-inherited";
   var $gotoKernelParameters = "";
   var $gotoLdapServer       = "default-inherited";
@@ -788,6 +786,21 @@ class workstartup extends plugin
       }
     }
 
+    if ($this->gotoKernelParameters == "") {
+      /* Add semi automatic values if empty */
+      // FIXME: LDAP Server may not be set here...
+      $this->gotoKernelParameters= "ldap=".base64_encode($this->gotoLdapServer);
+      
+      switch ($this->bootmode){
+        case "D":
+          $this->gotoKernelParameters.= " debug";
+        break;
+        case "G":
+          $this->gotoKernelParameters.= " splash=silent";
+        break;
+      }
+    }
+
     plugin::save();
 
     unset( $this->attrs['FAIrelease'] );