[OpenWrt-Devel] OpenWrt /etc/hotplug.d/button/00-wps
Bastian Bittorf
bittorf at bluebottle.com
Wed Sep 16 02:43:42 EDT 2015
* John kerry <kerry9842 at gmail.com> [16.09.2015 08:10]:
> Hi,
>
> I have changed the script as below:
>
> MYDEV='eth0.2'
>
> ["$ACTION" = "pressed" -a "$BUTTON" = "BUT_2" -a "INTERFACE" = 'wan'] &&
^^^ a space here, so [ "$ACTION" - the same at the end: 'wan' ]
use "$INTERFACE" with the '$'
please learn shell-scripting. maybe it's an good idea to use a static
checker like http://www.shellcheck.net/
> {
> devstatus "$MYDEV" | grep '"up": true' &&
> {
> echo "255" >
> /sys/devices/platform/leds-gpio/leds/db120:green:status/brightness
> }
> }
>
>
> but its not working.
>
> What mistake i am doing.
bye, bastian - greetings to china?!
_______________________________________________
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