<div dir="ltr">Hi Everyone,<br><div><br>I have configured the /etc/config/system file as below:<br><br>config led 'led_status'<br>option name 'STATUS'<br>option interval '50'<br>option sysfs 'db120:green:status'<br>option default '0'<br>option trigger 'netdev'<br>option mode 'link'<br>option dev 'eth0.2'<br><br></div><div>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.<br><br></div><div>I need to add one more condition before checking eth0.2 UP/DOWN to handle the Status LED.<br><br></div><div>I need to check whether "$ACTION" = "pressed" -a "$BUTTON" = "BUT_1" is pressed or not, then will check eth0.2 UP/down.<br><br></div><div>If BUT_1 pressed and eth0.2 up --> Status LED ON otherwise OFF.<br><br></div><div>Could anyone tell how i can add Button condition in /etc/config/system file.<br><br></div><div>Regards,<br></div><div>Afkar<br></div><div><br></div></div>