aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/usr
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-08-01 14:35:18 +0200
committerJo-Philipp Wich <jo@mein.io>2017-12-13 16:23:39 +0100
commit75d8127338028dec1db62bfc1c3fbe5f352f5b77 (patch)
treedd6396c4c96962afaf32884fa3fba8b7dc65b6e0 /package/base-files/files/usr
parentb616aa6db7a9952c182ab49d7942fb67c09803d5 (diff)
downloadupstream-75d8127338028dec1db62bfc1c3fbe5f352f5b77.tar.gz
upstream-75d8127338028dec1db62bfc1c3fbe5f352f5b77.tar.bz2
upstream-75d8127338028dec1db62bfc1c3fbe5f352f5b77.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> (cherry picked from commit c31f0421ceb47f347ade7317f263fcd09cfe325f)
Diffstat (limited to 'package/base-files/files/usr')
-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