aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/sbin
diff options
context:
space:
mode:
authorMichael Heimpold <mhei@heimpold.de>2018-12-04 23:12:05 +0100
committerHans Dedecker <dedeckeh@gmail.com>2018-12-05 22:16:52 +0100
commitd6ac8ca76c04ed39d7dd5de73d3b921819934186 (patch)
tree1f17cdf8beabf5b6520dfb709fa078c9a44b7064 /package/base-files/files/sbin
parent8ad45992acab9a2dead144d5b387fbe132ce59c1 (diff)
downloadupstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.tar.gz
upstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.tar.bz2
upstream-d6ac8ca76c04ed39d7dd5de73d3b921819934186.zip
base-files: fix several bashisms
For equality test a simple = is sufficient, the == is usually disregarded as bashism. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Diffstat (limited to 'package/base-files/files/sbin')
-rwxr-xr-xpackage/base-files/files/sbin/urandom_seed2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/sbin/urandom_seed b/package/base-files/files/sbin/urandom_seed
index 16d36574eb..7043e8af4e 100755
--- a/package/base-files/files/sbin/urandom_seed
+++ b/package/base-files/files/sbin/urandom_seed
@@ -13,7 +13,7 @@ save() {
}
SEED="$(uci -q get system.@system[0].urandom_seed || true)"
-[ "${SEED:0:1}" == "/" ] && save "$SEED"
+[ "${SEED:0:1}" = "/" ] && save "$SEED"
SEED=/etc/urandom.seed
[ ! -f $SEED ] && save "$SEED"