1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
<packagegui>
|
3
|
<include_file>openntpd.inc</include_file>
|
4
|
<custom_php_install_command>
|
5
|
openntpd_install();
|
6
|
</custom_php_install_command>
|
7
|
<menu>
|
8
|
<name>NTP server</name>
|
9
|
<tooltiptext>Configure the time server settings.</tooltiptext>
|
10
|
<section>Services</section>
|
11
|
<url>/pkg_edit.php?xml=openntpd.xml&id=0</url>
|
12
|
</menu>
|
13
|
<service>
|
14
|
<name>OpenNTPD</name>
|
15
|
<description>NTP server.</description>
|
16
|
<rcfile>openntpd.sh</rcfile>
|
17
|
<executable>ntpd</executable>
|
18
|
</service>
|
19
|
<!-- Interface -->
|
20
|
<name>openntpd</name>
|
21
|
<title>NTP server</title>
|
22
|
<fields>
|
23
|
<field>
|
24
|
<fieldname>enable</fieldname>
|
25
|
<fielddescr>Enable</fielddescr>
|
26
|
<description>Check this to enable the NTP server.</description>
|
27
|
<type>checkbox</type>
|
28
|
<enablefields>interface</enablefields>
|
29
|
</field>
|
30
|
<field>
|
31
|
<fieldname>interface</fieldname>
|
32
|
<fielddescr>Interface</fielddescr>
|
33
|
<description>Select the interface the NTP server will listen on.</description>
|
34
|
<default_value>lan</default_value>
|
35
|
<type>interfaces_selection</type>
|
36
|
<multiple/>
|
37
|
</field>
|
38
|
</fields>
|
39
|
<custom_php_resync_config_command>
|
40
|
openntpd_install();
|
41
|
openntpd_resync();
|
42
|
</custom_php_resync_config_command>
|
43
|
</packagegui>
|