projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b616aa6
)
base-files: suppress uci not found output in login.sh
author
Florian Eckert
<fe@dev.tdt.de>
Tue, 1 Aug 2017 12:35:18 +0000
(14:35 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Wed, 13 Dec 2017 15:23:39 +0000
(16:23 +0100)
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
)
package/base-files/files/usr/libexec/login.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/usr/libexec/login.sh
b/package/base-files/files/usr/libexec/login.sh
index 02ac9c828bc82e91af9b116efab5555df0a7706d..3c8bb509c02860d94c7a5c22c54ccb66334fa42b 100755
(executable)
--- 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