From: John Crispin Date: Fri, 12 Feb 2016 08:29:44 +0000 (+0000) Subject: use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.sh X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=b1580c15b4fbf7d4f5692ee64e31aaee5f96527c use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.sh Avoids inadvertent file creation when executing `/etc/init.d/dsl_control status`. Signed-off-by: Jonathan A. Kollasch SVN-Revision: 48700 --- 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 a2723f38f8..ece614be69 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"