From b51a45e297110c2b61fbaa22b217f8b533c14851 Mon Sep 17 00:00:00 2001 From: Allan Randall Date: Mon, 15 May 2006 06:10:31 +0000 Subject: [PATCH] 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 --- common.rc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/common.rc b/common.rc index 971c676c..83e1e17f 100644 --- a/common.rc +++ b/common.rc @@ -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 -- 2.47.3