[OpenWrt-Devel] [PATCH] busybox: remove validation message from bootup

Michel Stam m.stam at fugro.nl
Thu Oct 2 09:18:09 EDT 2014


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 <m.stam at fugro.nl>
---
 package/utils/busybox/files/cron | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/utils/busybox/files/cron b/package/utils/busybox/files/cron
index 8f54527..19ecc43 100755
--- a/package/utils/busybox/files/cron
+++ b/package/utils/busybox/files/cron
@@ -17,7 +17,7 @@ start_service () {
 	loglevel=$(uci_get "system. at 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
-- 
1.7.12.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list