<?xml version="1.0" encoding="utf-8" ?>
<packagegui>
	<title>Interfaces: Gateway Status LEDs</title>
	<name>gwled</name>
	<version>20110810</version>
	<savetext>Save</savetext>
	<include_file>/usr/local/pkg/gwled.inc</include_file>
	<menu>
		<name>Gateway Status LEDs</name>
		<tooltiptext>Assign LEDs to indicate Gateway status.</tooltiptext>
		<section>Interfaces</section>
		<url>/pkg_edit.php?xml=gwled.xml&amp;id=0</url>
	</menu>
	<additional_files_needed>
		<item>http://www.pfsense.org/packages/config/gwled/gwled.inc</item>
		<prefix>/usr/local/pkg/</prefix>
		<chmod>0644</chmod>
	</additional_files_needed>
	<additional_files_needed>
		<prefix>/usr/local/bin/</prefix>
		<chmod>0755</chmod>
		<item>http://www.pfsense.com/packages/config/gwled/gwled.php</item>
	</additional_files_needed>
	<service>
		<name>gwled</name>
		<rcfile>gwled.sh</rcfile>
		<executable>gwled</executable>
		<description>Gateway LED Indicator Daemon</description>
	</service>
	<fields>
		<field>
			<fielddescr>Enable gwled</fielddescr>
			<fieldname>enable</fieldname>
			<type>checkbox</type>
			<enablefields>enable_led2,enable_led3,gw_led2,gw_led3</enablefields>
			<description>if this is enabled, it will use LED #2 and #3 to 
				indicate gateway status with a peridic poll.</description>
		</field>			
		<field>
			<fielddescr>Enable LED #2</fielddescr>
			<fieldname>enable_led2</fieldname>
			<type>checkbox</type>
		</field>
		<field>
			<fielddescr>Interface For LED #2</fielddescr>
			<fieldname>gw_led2</fieldname>
			<type>select_source</type>
			<source><![CDATA[gwled_get_gateways()]]></source>
			<source_name>name</source_name>
			<source_value>value</source_value>
			<description>Use LED #2 to indicate the status for this gateway.</description>
		</field>
		<field>
			<fielddescr>Enable LED #3</fielddescr>
			<fieldname>enable_led3</fieldname>
			<type>checkbox</type>
		</field>
		<field>
			<fielddescr>Interface For LED #3</fielddescr>
			<fieldname>gw_led3</fieldname>
			<type>select_source</type>
			<source><![CDATA[gwled_get_gateways()]]></source>
			<source_name>name</source_name>
			<source_value>value</source_value>
			<description>Use LED #3 to indicate the status for this gateway.</description>
		</field>
	</fields>
	<custom_php_validation_command>
		validate_form_gwled($_POST, &amp;$input_errors);
	</custom_php_validation_command>
	<custom_php_resync_config_command>
		sync_package_gwled();
	</custom_php_resync_config_command>
</packagegui>