aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-08-01 14:35:18 +0200
committerJohn Crispin <john@phrozen.org>2017-08-04 23:11:19 +0200
commitc31f0421ceb47f347ade7317f263fcd09cfe325f (patch)
treee94be6e2801b79367dee6a51bee18b39a1f8cfbc /package/base-files
parentfea89fa25b5e54ebf2ce5cc771a3f1eb20c6d972 (diff)
downloadupstream-c31f0421ceb47f347ade7317f263fcd09cfe325f.tar.gz
upstream-c31f0421ceb47f347ade7317f263fcd09cfe325f.tar.bz2
upstream-c31f0421ceb47f347ade7317f263fcd09cfe325f.zip
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>
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/usr/libexec/login.sh2
1 files changed, 1 insertions, 1 deletions
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