From d472b8d0bfaf36aef8bf6e9eee61ead91e2cccfa Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Wed, 5 Jul 2000 06:39:22 +0000 Subject: [PATCH] Use a cleverer regexp to extract OS minor version number. --- client/scripts/linux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scripts/linux b/client/scripts/linux index 603fff5b..b9d5884e 100755 --- a/client/scripts/linux +++ b/client/scripts/linux @@ -45,8 +45,8 @@ fi release=`uname -r` release=`expr $release : '\(.*\)\..*'` -relmajor=`echo $release |sed -e 's/^\([^\.]*\)\..*$/\1/'` -relminor=`echo $release |sed -e 's/^.*\.\([^\.]*\)$/\1/'` +relminor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'` +relmajor=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'` if [ x$new_broadcast_address != x ]; then new_broadcast_arg="broadcast $new_broadcast_address"