mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01: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>
(cherry picked from commit c31f0421ce)
This commit is contained in:
parent
b616aa6db7
commit
75d8127338
1 changed files with 1 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue