aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-02-12 08:29:44 +0000
committerJohn Crispin <john@openwrt.org>2016-02-12 08:29:44 +0000
commit48f82b53d046e001ee762f1312ff1088bda54b2b (patch)
treef364b6f1fbb14dc1d8e8cb9a9f11a85bfe4c03d6
parent79deb0290acb10285977fbefdbc590917806138a (diff)
downloadupstream-48f82b53d046e001ee762f1312ff1088bda54b2b.tar.gz
upstream-48f82b53d046e001ee762f1312ff1088bda54b2b.tar.bz2
upstream-48f82b53d046e001ee762f1312ff1088bda54b2b.zip
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 <jakllsch@kollasch.net> SVN-Revision: 48700
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/functions/lantiq_dsl.sh4
1 files 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 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"