fgrep on IRIX doesnt have a -q flag - so switch to plain grep.
authorNathan Scott <nathans@sgi.com>
Thu, 14 Jul 2005 03:45:42 +0000 (03:45 +0000)
committerNathan Scott <nathans@sgi.com>
Thu, 14 Jul 2005 03:45:42 +0000 (03:45 +0000)
Merge of master-melb:xfs-cmds:23174a by kenmcd.

common.rc

index 1c875945e8ded80547295b18d4cebc86954714eb..7d5c0212ab01ce7b673e8e08d0536e533f616c68 100644 (file)
--- a/common.rc
+++ b/common.rc
@@ -1,6 +1,6 @@
 ##/bin/sh
 #-----------------------------------------------------------------------
 ##/bin/sh
 #-----------------------------------------------------------------------
-#  Copyright (c) 2000-2004 Silicon Graphics, Inc.  All Rights Reserved.
+#  Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
 #  the Free Software Foundation; either version 2 of the License, or
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
 #  the Free Software Foundation; either version 2 of the License, or
@@ -1105,7 +1105,7 @@ _test_inode_flag()
     file=$2
 
     if which $XFS_IO_PROG >/dev/null; then
     file=$2
 
     if which $XFS_IO_PROG >/dev/null; then
-        if $XFS_IO_PROG -r -c 'lsattr -v' "$file" | fgrep -q "$flag" ; then
+        if $XFS_IO_PROG -r -c 'lsattr -v' "$file" | grep -q "$flag" ; then
            return 0
         fi
     fi
            return 0
         fi
     fi