Masato Taruishi
taru****@users*****
2004年 10月 11日 (月) 21:37:08 JST
=================================================================== RCS file: ultrapossum/module/failover/11failover,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- ultrapossum/module/failover/11failover 2004/10/10 13:14:18 1.10 +++ ultrapossum/module/failover/11failover 2004/10/11 12:37:08 1.11 @@ -62,12 +62,12 @@ if test `uname` != "SunOS"; then - NFSDIR=$(ultrapossum_getconf NFSDIR "`cat /proc/mounts | grep nfs | cut -d' ' -f2`") + NFSDIR=$(ultrapossum_getconf NFSDIR "`cat /proc/mounts | grep nfs | cut -d' ' -f2 | head -1`") if test "x$NFSDIR" = "x"; then NFSDIR="`grep nfs $FSTAB | awk -F' ' '{print $2;}' | head -1`" fi - NFSDEVICE=$(ultrapossum_getconf NFSDEVICE "`cat /proc/mounts | grep nfs | cut -d' ' -f1`") + NFSDEVICE=$(ultrapossum_getconf NFSDEVICE "`cat /proc/mounts | grep nfs | cut -d' ' -f1 | head -1`") if test "x$NFSDEVICE" = "x"; then NFSDEVICE="`grep nfs $FSTAB | awk -F' ' '{print $1;}' | head -1`" fi