From d6ac8ca76c04ed39d7dd5de73d3b921819934186 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Tue, 4 Dec 2018 23:12:05 +0100 Subject: base-files: fix several bashisms For equality test a simple = is sufficient, the == is usually disregarded as bashism. Signed-off-by: Michael Heimpold --- package/base-files/files/sbin/urandom_seed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files/sbin') 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" -- cgit v1.2.3