--- orig/shell-tools
+++ mod/shell-tools
@@ -65,27 +65,6 @@
 fi
 }
 
-_quiet_dd_cleanup ()
-{
-    local dd_output="$1"
-
-    if [ -f "${dd_output}" ]; then
-	sed --expression='/^[0-9]\++[0-9]\+ records \(in\|out\)$/d' "${dd_output}" >&2
-	rm -f "${dd_output}"
-    fi
-}
-
-# Invoke dd(1) filtering out verbose output
-quiet_dd ()
-{
-    local dd_output=$(mktemp -t "$(basename $0)-dd-XXXXXX")
-    local saved_traps=$(trap)
-    add_trap "_quiet_dd_cleanup \"${dd_output}\"" EXIT
-    dd "$@" status=noxfer > "${dd_output}" 2>&1
-    _quiet_dd_cleanup "${dd_output}"
-    restore_traps "${saved_traps}"
-}
-
 # Terminate with an error message if not running with root privileges
 require_root ()
 {
@@ -107,3 +86,24 @@
 	| sed --quiet --expression='s/^\([^[:space:]]\+\)[[:space:]]\+on[[:space:]]\+\([^[:space:]]\+\)[[:space:]]\+type[[:space:]]\+.*$/\1\n\2/gp' \
 	| grep --fixed-strings --quiet --line-regexp "${path}"
 }
+
+_quiet_dd_cleanup ()
+{
+    local dd_output="$1"
+
+    if [ -f "${dd_output}" ]; then
+	sed --expression='/^[0-9]\++[0-9]\+ records \(in\|out\)$/d' "${dd_output}" >&2
+	rm -f "${dd_output}"
+    fi
+}
+
+# Invoke dd(1) filtering out verbose output
+quiet_dd ()
+{
+    local dd_output=$(mktemp -t "$(basename $0)-dd-XXXXXX")
+    local saved_traps=$(trap)
+    add_trap "_quiet_dd_cleanup \"${dd_output}\"" EXIT
+    dd "$@" status=noxfer > "${dd_output}" 2>&1
+    _quiet_dd_cleanup "${dd_output}"
+    restore_traps "${saved_traps}"
+}
