In the same vein as Bug #1397, I wonder if SYSTYPE is always
set early enoug in IPsrcaddr. I've queued this up for post 2.0.7.

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

Resource Scripts: Set SYSTYPE early in IPsrcaddr

SYSTYPE is actually used in a few places, but is set inside of ip_status().
I couldn't convince myself that it broke anything, but there is clearly
scope if ip_status() isn't called early enough now or in the future.

This patch sets SYSTYPE right near the top of the script.

Signed-Off-By: Simon Horman <[EMAIL PROTECTED]>
Index: linux-ha/resources/OCF/IPsrcaddr.in
===================================================================
--- linux-ha.orig/resources/OCF/IPsrcaddr.in    2006-08-09 19:57:08.000000000 
+0900
+++ linux-ha/resources/OCF/IPsrcaddr.in 2006-08-09 19:57:12.000000000 +0900
@@ -64,6 +64,8 @@
   CMDSHOW="$IPROUTE route show   to exact 0/0"
 CMDCHANGE="$IPROUTE route change to "
 
+SYSTYPE="`uname -s`"
+
 usage() {
        echo $USAGE >&2
 }
@@ -339,7 +341,6 @@
 ip_status() {
 
   BASEIP="$1"
-  SYSTYPE="`uname -s`"
   case "$SYSTYPE" in
     Darwin)
        # Treat Darwin the same as the other BSD variants (matched as *BSD)


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to