[packages/open-vm-tools] run uname -r once per script
glen
glen at pld-linux.org
Thu Sep 26 18:15:48 CEST 2013
commit 9aed8438f7dcba95333d7d81654944a12f364a9f
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Sep 26 19:12:23 2013 +0300
run uname -r once per script
open-vm-tools-init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/open-vm-tools-init b/open-vm-tools-init
index d15e1ff..5969214 100755
--- a/open-vm-tools-init
+++ b/open-vm-tools-init
@@ -12,6 +12,7 @@
. /etc/rc.d/init.d/functions
RETVAL=0
+kver=`uname -r`
is_ESX_running() {
if [ ! -f /usr/bin/vmware-checkvm ] ; then
@@ -28,7 +29,6 @@ is_ESX_running() {
module_exist() {
module=$1
- kver=`uname -r`
[ -f /lib/modules/$kver/misc/$module.ko* ] && echo "yes" || echo "no"
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/open-vm-tools.git/commitdiff/415b0c7c50027188e4b601496fe1133084bc6121
More information about the pld-cvs-commit
mailing list