For equality test a simple = is sufficient, the == is usually disregarded as bashism. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
5 lines
104 B
Bash
Executable file
5 lines
104 B
Bash
Executable file
#!/bin/sh
|
|
|
|
[ "$(uci -q get system.@system[0].ttylogin)" = 1 ] || exec /bin/ash --login
|
|
|
|
exec /bin/login
|