From: Ben Pfaff Date: Fri, 13 Mar 2009 00:24:18 +0000 (-0700) Subject: debian: Suppress printing out random numbers in init script. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=425e0c34391afc50f82391f32501fca3acb4d516;p=openvswitch debian: Suppress printing out random numbers in init script. --- 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