commit | e69fc6b18fbfb20c3037bdcebf161538c9d55885 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Tue May 21 11:42:08 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Tue May 21 17:12:42 2013 -0700 |
tree | fe7b203ed0d954c39b06afa8987aff73f4bbfc55 | |
parent | 04686be0d0b9813049086c1f6b8f77e884d46f52 [diff] |
prestart.sh: fix check for fedora/redhat/centos In fixup_udev(), we need to detect rhel or centos. Both RHEL, CentOS and Fedora have /etc/redhat-release, in addition Fedora has /etc/fedora-release and CentOS 6 has /etc/centos-release (while Centos 4 and 5 don't). So we have to check that - fedora-release is NOT present and - redhat-release is present We do it in two steps. Signed-off-by: Kir Kolyshkin <kir@openvz.org>