aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/preinit
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/lib/preinit
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/lib/preinit')
-rw-r--r--package/base-files/files/lib/preinit/30_failsafe_wait2
-rw-r--r--package/base-files/files/lib/preinit/81_urandom_seed2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/base-files/files/lib/preinit/30_failsafe_wait b/package/base-files/files/lib/preinit/30_failsafe_wait
index 9a34f2de4c..dd9c7e2b59 100644
--- a/package/base-files/files/lib/preinit/30_failsafe_wait
+++ b/package/base-files/files/lib/preinit/30_failsafe_wait
@@ -82,7 +82,7 @@ fs_wait_for_key () {
failsafe_wait() {
FAILSAFE=
- [ "$pi_preinit_no_failsafe" == "y" ] && {
+ [ "$pi_preinit_no_failsafe" = "y" ] && {
fs_wait_for_key "" "" $fs_failsafe_wait_timeout
return
}
diff --git a/package/base-files/files/lib/preinit/81_urandom_seed b/package/base-files/files/lib/preinit/81_urandom_seed
index 10878f3dc2..26212c60b5 100644
--- a/package/base-files/files/lib/preinit/81_urandom_seed
+++ b/package/base-files/files/lib/preinit/81_urandom_seed
@@ -18,7 +18,7 @@ do_urandom_seed() {
_do_urandom_seed "/etc/urandom.seed"
SEED="$(uci -q get system.@system[0].urandom_seed)"
- [ "${SEED:0:1}" == "/" -a "$SEED" != "/etc/urandom.seed" ] && _do_urandom_seed "$SEED"
+ [ "${SEED:0:1}" = "/" -a "$SEED" != "/etc/urandom.seed" ] && _do_urandom_seed "$SEED"
}
boot_hook_add preinit_main do_urandom_seed