Commits
Thorsten Schifferdecker authored and Kir Kolyshkin committed 9c1e02f5f97
init.d/vz-redhat: improve kernel version extraction From http://bugzilla.openvz.org/834: I'm using above mentioned package. When installing it I stumbled across the following error message: > Installing new version of config file /etc/vz/vz.conf ... > /etc/init.d/vz: line 192: test: 18+openvz: integer expression expected I'm using a self-compiled kernel with the following version number: > # uname -r > 2.6.18+openvz When parsing the version no. in /etc/init.d/vz we therefore have: > KERNEL_PATCHLEVEL=18+openvz As a consequence the following (numeric!) test fails with above mentioned error message: > test "${KERNEL_PATCHLEVEL}" -gt 9 The following patch in get_kernel_version() solves this problem