Code

Added "Force localboot" feature
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Mar 2007 10:06:08 +0000 (10:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Mar 2007 10:06:08 +0000 (10:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5926 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/class_workstationGeneric.inc

index f87db5c5052f4fc3fe0eacaeb12b9a1f681ae1f5..cc756c73e6228d9297efda0e66a2c09715ea6cb1 100644 (file)
@@ -23,7 +23,8 @@ class servgeneric extends plugin
   var $netConfigDNS;
   var $modes = array();
 
-  var $mapActions   = array("reboot"          => "",
+  var $mapActions   = array("reboot"          => "localboot",
+                            "localboot"       => "localboot",
                             "instant_update"  => "softupdate",
                             "update"          => "scheduledupdate",
                             "reinstall"       => "install",
@@ -172,12 +173,14 @@ class servgeneric extends plugin
                                        "reinstall" => _("Reinstall"),
                                        "rescan" => _("Rescan hardware"),
                                        "memcheck" => _("Memory test"),
+                                       "localboot" => _("Force localboot"),
                                        "sysinfo"  => _("System analysis")));
     } else {
       $smarty->assign("actions", array("wake" => _("Wake up"),
                                        "reinstall" => _("Reinstall"),
                                        "update" => _("Scheduled update"),
                                        "memcheck" => _("Memory test"),
+                                       "localboot" => _("Force localboot"),
                                        "sysinfo"  => _("System analysis")));
     }
 
index a2c4af1a6ed633ae18abfd393120583bf32940ad..be1101998d1a9356fd6a691cf6986343d3577064 100644 (file)
@@ -46,6 +46,7 @@ class workgeneric extends plugin
   var $objectclasses= array("top", "gotoWorkstation", "GOhard","FAIobject");
 
   var $mapActions   = array("reboot"          => "localboot",
+                            "localboot"       => "localboot",
                             "instant_update"  => "softupdate",
                             "update"          => "scheduledupdate",
                             "reinstall"       => "install",
@@ -252,12 +253,14 @@ class workgeneric extends plugin
                                        "reinstall" => _("Reinstall"),
                                        "rescan" => _("Rescan hardware"),
                                        "memcheck" => _("Memory test"),
+                                       "localboot" => _("Force localboot"),
                                        "sysinfo"  => _("System analysis")));
     } else {
       $smarty->assign("actions", array("wake" => _("Wake up"),
                                        "reinstall" => _("Reinstall"),
                                        "update" => _("Scheduled update"),
                                        "memcheck" => _("Memory test"),
+                                       "localboot" => _("Force localboot"),
                                        "sysinfo"  => _("System analysis")));
     }
     /* Arrays */