mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
base-files: suppress uci not found output in login.sh
Fix "uci: Entry not found" output if "ttylogin" is not set in "etc/config/system" Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
fea89fa25b
commit
c31f0421ce
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ "$(uci 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
|
exec /bin/login
|
||||||
|
Loading…
Reference in New Issue
Block a user