<div dir="ltr">Hi,<br><div class="gmail_quote"><div dir="ltr"><br>I have to write some condition in <br>/etc/hotplug.d/button/50-wps/ file<br><br>I have to configure cat /etc/hotplug.d/button/00-wps file for following condition:<br>if [ "$BUTTON" = "BTN_2" ] && [ "$ACTION" = "pressed" ]; then<br><br>I have to check eth0.1 if link is up then have ON status led otherwise OFF.<br><br>I am able ON/OFF Status LED based on eth0 link up/down using below<br><br>config led 'led_status'<br> option name 'STATUS'<br> option interval '50'<br> option sysfs 'wndr3700:green:status'<br> option default '0'<br> option trigger 'netdev'<br> option mode 'link'<br> option dev 'eth0'<br><br> But i need to check first above button that is pressed only i have to check eth0 status.<br><br>I am not able to mix both condition in one place.<br><br>Could anyone please reply, how i can add such condition in that file.<br></div>
</div><br></div>