source: trunk/Modules/NetworkConfigLinux/NetworkConfigLinux.php

Last change on this file was 899, checked in by chronos, 3 years ago
File size: 1004 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/Generators/DNS.php');
4include_once(dirname(__FILE__).'/Generators/CheckPorts.php');
5include_once(dirname(__FILE__).'/Generators/Latency.php');
6
7class ModuleNetworkConfigLinux extends Module
8{
9 function __construct(System $System)
10 {
11 parent::__construct($System);
12 $this->Name = 'NetworkConfigLinux';
13 $this->Version = '1.0';
14 $this->Creator = 'Chronos';
15 $this->License = 'GNU/GPL';
16 $this->Description = 'Network service configuration of Linux server';
17 $this->Dependencies = array(ModuleNetworkConfig::GetName());
18 }
19
20 function DoStart(): void
21 {
22 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-dns', 'ConfigDNS');
23 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-checkports', 'ConfigCheckPorts');
24 ModuleNetworkConfig::Cast($this->System->GetModule('NetworkConfig'))->RegisterConfigItem('linux-latency', 'ConfigLatency');
25 }
26}
Note: See TracBrowser for help on using the repository browser.