mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 13:28:14 +00:00
Use a cleverer regexp to extract OS minor version number.
This commit is contained in:
parent
8023ece86a
commit
d472b8d0bf
@ -45,8 +45,8 @@ fi
|
|||||||
|
|
||||||
release=`uname -r`
|
release=`uname -r`
|
||||||
release=`expr $release : '\(.*\)\..*'`
|
release=`expr $release : '\(.*\)\..*'`
|
||||||
relmajor=`echo $release |sed -e 's/^\([^\.]*\)\..*$/\1/'`
|
relminor=`echo $release |sed -e 's/[0-9]*\.\([0-9][0-9]*\)\(\..*\)*$/\1/'`
|
||||||
relminor=`echo $release |sed -e 's/^.*\.\([^\.]*\)$/\1/'`
|
relmajor=`echo $release |sed -e 's/\([0-9][0-9]*\)\..*$/\1/'`
|
||||||
|
|
||||||
if [ x$new_broadcast_address != x ]; then
|
if [ x$new_broadcast_address != x ]; then
|
||||||
new_broadcast_arg="broadcast $new_broadcast_address"
|
new_broadcast_arg="broadcast $new_broadcast_address"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user