Author: blogic
Date: 2016-02-12 09:29:44 +0100 (Fri, 12 Feb 2016)
New Revision: 48700

Modified:
   trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
Log:
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 <[email protected]>

Modified: trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh
===================================================================
--- trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh    
2016-02-12 08:29:38 UTC (rev 48699)
+++ trunk/target/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh    
2016-02-12 08:29:44 UTC (rev 48700)
@@ -414,13 +414,13 @@
        [ -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"
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to