[source] base-files: suppress uci not found output in login.sh

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:44:58 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/75d8127338028dec1db62bfc1c3fbe5f352f5b77

commit 75d8127338028dec1db62bfc1c3fbe5f352f5b77
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Tue Aug 1 14:35:18 2017 +0200

    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 at dev.tdt.de>
    (cherry picked from commit c31f0421ceb47f347ade7317f263fcd09cfe325f)
---
 package/base-files/files/usr/libexec/login.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/usr/libexec/login.sh b/package/base-files/files/usr/libexec/login.sh
index 02ac9c8..3c8bb50 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 get system. at system[0].ttylogin)" == 1 ] || exec /bin/ash --login
+[ "$(uci -q get system. at system[0].ttylogin)" == 1 ] || exec /bin/ash --login
 
 exec /bin/login



More information about the lede-commits mailing list