For equality test a simple = is sufficient, the == is usually disregarded as bashism. Signed-off-by: Michael Heimpold <mhei@heimpold.de>master
parent
8ad45992ac
commit
d6ac8ca76c
@ -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 |
||||
|
Loading…
Reference in new issue