* John kerry <kerry9...@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@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel