diff options
author | Michael Heimpold <mhei@heimpold.de> | 2018-12-04 23:12:05 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-12-05 22:16:52 +0100 |
commit | d6ac8ca76c04ed39d7dd5de73d3b921819934186 (patch) | |
tree | 1f17cdf8beabf5b6520dfb709fa078c9a44b7064 /package/base-files/files/usr | |
parent | 8ad45992acab9a2dead144d5b387fbe132ce59c1 (diff) | |
download | upstream-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-x | package/base-files/files/usr/libexec/login.sh | 2 |
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 |