use "-gt" instead of ">" with [ in /lib/functions/lantiq_dsl.sh
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Feb 2016 08:29:44 +0000 (08:29 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 12 Feb 2016 08:29:44 +0000 (08:29 +0000)
Avoids inadvertent file creation when executing
`/etc/init.d/dsl_control status`.

Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48700 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh

index a2723f3..ece614b 100755 (executable)
@@ -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"