Author: cyrus
Date: 2014-10-02 21:47:33 +0200 (Thu, 02 Oct 2014)
New Revision: 42751

Modified:
   trunk/package/utils/busybox/files/cron
Log:
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]>

Modified: trunk/package/utils/busybox/files/cron
===================================================================
--- trunk/package/utils/busybox/files/cron      2014-10-02 19:47:28 UTC (rev 
42750)
+++ trunk/package/utils/busybox/files/cron      2014-10-02 19:47:33 UTC (rev 
42751)
@@ -17,7 +17,7 @@
        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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to