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/usr/libexec/login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/base-files/files/usr/libexec') diff --git a/package/base-files/files/usr/libexec/login.sh b/package/base-files/files/usr/libexec/login.sh index 3c8bb509c0..1fff39c6a0 100755 --- a/package/base-files/files/usr/libexec/login.sh +++ b/package/base-files/files/usr/libexec/login.sh @@ -1,5 +1,5 @@ #!/bin/sh -[ "$(uci -q get system.@system[0].ttylogin)" == 1 ] || exec /bin/ash --login +[ "$(uci -q get system.@system[0].ttylogin)" = 1 ] || exec /bin/ash --login exec /bin/login -- cgit v1.2.3