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