[OpenWrt-Devel] AR9344 OpenWRT LED Handling
Afkar Rafique
afkar.ec at gmail.com
Tue Sep 15 23:31:48 EDT 2015
Hi Everyone,
I have configured the /etc/config/system file as below:
config led 'led_status'
option name 'STATUS'
option interval '50'
option sysfs 'db120:green:status'
option default '0'
option trigger 'netdev'
option mode 'link'
option dev 'eth0.2'
so It is working fine whenever i connect eth0.2 is UP ON the Status LED and
OFF the LED in case of eth0.2 is down.
I need to add one more condition before checking eth0.2 UP/DOWN to handle
the Status LED.
I need to check whether "$ACTION" = "pressed" -a "$BUTTON" = "BUT_1" is
pressed or not, then will check eth0.2 UP/down.
If BUT_1 pressed and eth0.2 up --> Status LED ON otherwise OFF.
Could anyone tell how i can add Button condition in /etc/config/system file.
Regards,
Afkar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150916/7d929ef3/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