| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once(dirname(__FILE__).'/Generators/DNS.php');
|
|---|
| 4 | include_once(dirname(__FILE__).'/Generators/CheckPorts.php');
|
|---|
| 5 | include_once(dirname(__FILE__).'/Generators/Latency.php');
|
|---|
| 6 |
|
|---|
| 7 | class 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.