added dd function to handle variations of dd output in Linux

Merge of master-melb:xfs-cmds:25929a by kenmcd.

  added dd function to handle variations of dd output in Linux
This commit is contained in:
Allan Randall
2006-05-15 06:10:31 +00:00
parent 0e183a3032
commit b51a45e297
+17
View File
@@ -20,6 +20,23 @@
# Mountain View, CA 94043, USA, or: http://www.sgi.com
#-----------------------------------------------------------------------
dd()
{
if [ "$HOSTOS" == "Linux" ]
then
command dd --help | grep noxfer > /dev/null 2>&1
if [ "$?" -eq 0 ]
then
command dd status=noxfer $@
else
command dd $@
fi
else
command dd $@
fi
}
_mount_opts()
{
case $FSTYP in