From: Florian Eckert Date: Tue, 1 Aug 2017 12:35:18 +0000 (+0200) Subject: base-files: suppress uci not found output in login.sh X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75d8127338028dec1db62bfc1c3fbe5f352f5b77;p=librecmc%2Flibrecmc.git 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 (cherry picked from commit c31f0421ceb47f347ade7317f263fcd09cfe325f) --- diff --git a/package/base-files/files/usr/libexec/login.sh b/package/base-files/files/usr/libexec/login.sh index 02ac9c828b..3c8bb509c0 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.@system[0].ttylogin)" == 1 ] || exec /bin/ash --login +[ "$(uci -q get system.@system[0].ttylogin)" == 1 ] || exec /bin/ash --login exec /bin/login