From 425e0c34391afc50f82391f32501fca3acb4d516 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 12 Mar 2009 17:24:18 -0700 Subject: [PATCH] debian: Suppress printing out random numbers in init script. --- debian/openflow-switch.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index e676bfef..72f4bdf5 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -164,7 +164,7 @@ configure_ssl() { check_int_var() { eval value=\$$1 if test -n "$value"; then - if expr "X$value" : 'X[0-9][0-9]*$'; then + if expr "X$value" : 'X[0-9][0-9]*$' > /dev/null 2>&1; then if test $value -lt $2; then echo "warning: The $1 option may not be set to a value below $2, treating as $2" >&2 eval $1=$2 -- 2.30.2