aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorSven Roederer <devel-sven@geroedel.de>2019-12-25 18:39:00 +0100
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-26 21:51:24 +0100
commit0fecc997f88b7f0a44c0f724d6de30083a14b908 (patch)
tree441013bbd5d10465d92d6dc952fa09dd7691c8d6 /package/base-files/files/lib
parenteec50c73c4c9cca89a4bca13a40517b262192fea (diff)
downloadupstream-0fecc997f88b7f0a44c0f724d6de30083a14b908.tar.gz
upstream-0fecc997f88b7f0a44c0f724d6de30083a14b908.tar.bz2
upstream-0fecc997f88b7f0a44c0f724d6de30083a14b908.zip
base-files: remove some bashisms
"[[" is a bash extension for test. As the ash-implementation is not fully compatible we drop its usage. Also change to "=" for simple test, which is sufficient. (see d6ac8ca76c04ed) Signed-off-by: Sven Roederer <devel-sven@geroedel.de> [split patch, removed shebang] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/functions/caldata.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions/caldata.sh b/package/base-files/files/lib/functions/caldata.sh
index 1ff69ce1ae..3bdb1e4dd5 100644
--- a/package/base-files/files/lib/functions/caldata.sh
+++ b/package/base-files/files/lib/functions/caldata.sh
@@ -69,7 +69,7 @@ caldata_valid() {
local expected="$1"
magic=$(hexdump -v -n 2 -e '1/1 "%02x"' /lib/firmware/$FIRMWARE)
- [[ "$magic" == "$expected" ]]
+ [ "$magic" = "$expected" ]
return $?
}