Преглед изворни кода

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 <[email protected]>
Florian Eckert пре 8 година
родитељ
комит
c31f0421ce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/base-files/files/usr/libexec/login.sh

+ 1 - 1
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