Administration Scripts truncate after semicolons after saving
Opened this issue · 1 comments
ybugroup commented
Administration > Scripts > Event Scripts
Administration Scripts truncate after semicolons, i.e. ";" after saving. Specifically, I was trying to save a script to customize LEDs, see below. The script was truncated after the first semicolon.
#!/bin/sh
for i in 2 3 8 9 12 13 17 18 ; do gpio enable $i ; done
for i in 14 15 ; do gpio disable $i ; done
et robowr 0x0 0x18 0x1ff
et robowr 0x0 0x18 0x0
et robowr 0x0 0x1a 0x0
Jackysi commented
I think its somehow related to the way tomato escapes/stores strings. I don't think there will be fix for that anytime soon so I suggest writing custom script and executing it via event scripts.