aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr
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/usr
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/usr')
-rwxr-xr-xpackage/base-files/files/usr/libexec/login.sh2
1 files changed, 1 insertions, 1 deletions
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