debian: Suppress printing out random numbers in init script.
authorBen Pfaff <blp@nicira.com>
Fri, 13 Mar 2009 00:24:18 +0000 (17:24 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 16 Mar 2009 19:48:51 +0000 (12:48 -0700)
debian/openflow-switch.init

index e676bfeff684af33eb6cca7466a8a4e9dc9284d6..72f4bdf58d37ad5cb76f974b8725404fc89dc6c1 100755 (executable)
@@ -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