<div dir="ltr"><p>I am working on AR9344 Openwrt. I have configured the status led based on eth0.2 trigger in /etc/config/system</p><p>config led 'Status_led'<br>        option name 'Status_led'<br>        option interval '50'<br>        option sysfs 'db120:green:status'<br>        option default '0'<br>        option trigger 'netdev'<br>        option mode 'link tx rx'<br>        option dev 'eth0.2'</p><p>I have configured GPIO16 as input. I want to check both condition as below:</p><p>if( (GPIO16 is high) &&<br>   (eth0.2 is high) )<br>{<br>  Status Led ON<br>}<br>else<br>{<br>  status led OFF<br>}</p><p>I need to check both condition to ON/OFF Status LED.</p><p>Could anyone help me to write both condition to ON/OFF Status LED.</p><p>Any help would be appreciate.</p>Regards,</div>