[OpenWrt-Devel] [PATCH] [lantiq] use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.sh
Jonathan A. Kollasch
jakllsch at kollasch.net
Wed Feb 10 15:36:23 EST 2016
Avoids inadvertent file creation when executing
`/etc/init.d/dsl_control status`.
Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---
target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
index a2723f3..ece614b 100755
--- a/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
@@ -414,13 +414,13 @@ latency_delay() {
[ -z "$idd" ] && idd=0
[ -z "$idu" ] && idu=0
- if [ "$idd" > 100 ]; then
+ if [ "$idd" -gt 100 ]; then
idd_s="Interleave"
else
idd_s="Fast"
fi
- if [ "$idu" > 100 ]; then
+ if [ "$idu" -gt 100 ]; then
idu_s="Interleave"
else
idu_s="Fast"
--
2.1.4
_______________________________________________
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