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,
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel