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