From 9581c8c573706db76114d515a76129caae6e13d2 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 May 2010 07:16:17 +0000 Subject: [PATCH] Updated systemKernelsHook property git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../systems/goto/class_terminalStartup.inc | 47 ++++++++++++------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc index 1b657e401..fa8a22210 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_terminalStartup.inc @@ -129,7 +129,7 @@ class termstartup extends plugin /* Get list of boot kernels */ if (isset($this->config->data['TABS'])){ - $command= $this->config->get_cfg_value(get_class($this), "systemKernelsHook"); + $command= $this->config->get_cfg_value('termstartup', "systemKernelsHook"); if (!check_command($command)){ $message[]= sprintf(_("Command '%s', specified as systemKernelsHook for plugin '%s' doesn't seem to exist."), $command, @@ -503,22 +503,35 @@ class termstartup extends plugin /* Return plugin informations for acl handling */ static function plInfo() { - return (array( - "plShortName" => _("Startup"), - "plDescription" => _("Terminal startup"), - "plSelfModify" => FALSE, - "plDepends" => array(), - "plPriority" => 5, - "plSection" => array("administration"), - "plCategory" => array("terminal"), - - "plProvidedAcls"=> array( - "gotoLdapServer" => _("Ldap server"), - "gotoShare" => _("Shares"), - "gotoModules" => _("Kernel modules"), - "gotoBootKernel" => _("Boot kernel"), - "gotoKernelParameters"=> _("Kernel parameter")) - )); + return (array( + "plShortName" => _("Startup"), + "plDescription" => _("Terminal startup"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 5, + "plSection" => array("administration"), + "plCategory" => array("terminal"), + + "plProperties" => array( + + array( + "name" => "systemKernelsHook", + "type" => "command", + "default" => "", + "description" => _("For the workstations and terminals, you can define the 'systemKernelsHook' keyword. It can load additional kernels that are not retrieveable by standard GOsa/FAI mechanisms."), + "check" => "gosaProperty::isCommand", + "migrate" => "", + "group" => "system", + "mandatory" => FALSE) + ), + + "plProvidedAcls"=> array( + "gotoLdapServer" => _("Ldap server"), + "gotoShare" => _("Shares"), + "gotoModules" => _("Kernel modules"), + "gotoBootKernel" => _("Boot kernel"), + "gotoKernelParameters"=> _("Kernel parameter")) + )); } -- 2.30.2