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

busybox: remove validation message from bootup

A message:
uinteger - 9 = true
is displayed during boot. This is the result of the validate_data
command checking the cron log level. As the output is not
interesting, only the result, filter...

Signed-off-by: Michel Stam <[email protected]>

SVN-Revision: 42751
Steven Barth пре 11 година
родитељ
комит
3cdeac4173
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      package/utils/busybox/files/cron

+ 1 - 1
package/utils/busybox/files/cron

@@ -17,7 +17,7 @@ start_service () {
 	loglevel=$(uci_get "system.@system[0].cronloglevel")
 
 	[ -z "${loglevel}" ] || {
-		/sbin/validate_data uinteger "${loglevel}"
+		/sbin/validate_data uinteger "${loglevel}" 2>/dev/null
 		[ "$?" -eq 0 ] || {
 			echo "validation failed"
 			return 1