[OpenWrt-Devel] AR9344 Openwrt + check Multiple condition /etc/config/system
Afkar Rafique
afkar.ec at gmail.com
Wed Oct 21 23:46:26 EDT 2015
I am working on AR9344 Openwrt. I have configured the status led based on
eth0.2 trigger in /etc/config/system
config led 'Status_led'
option name 'Status_led'
option interval '50'
option sysfs 'db120:green:status'
option default '0'
option trigger 'netdev'
option mode 'link tx rx'
option dev 'eth0.2'
I have configured GPIO16 as input. I want to check both condition as below:
if( (GPIO16 is high) &&
(eth0.2 is high) )
{
Status Led ON
}
else
{
status led OFF
}
I need to check both condition to ON/OFF Status LED.
Could anyone help me to write both condition to ON/OFF Status LED.
Any help would be appreciate.
Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20151022/3b4b1cdf/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list