From a8801d8665bcc94c63a798e291a03c88f2af0215 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 27 Sep 2010 02:50:58 -0400 Subject: mtd-utils: unify flash_erase and flash_eraseall These have overlapping functionality, and while flash_eraseall supports newer 64bit ioctls, flash_erase does not. So rather than graft support onto flash_erase, merge the functionality of two into flash_erase so we only have to support one util from now on. A simple wrapper is provided to ease old flash_eraseall users into the new combined flash_erase util. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- flash_eraseall | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 flash_eraseall (limited to 'flash_eraseall') diff --git a/flash_eraseall b/flash_eraseall new file mode 100755 index 0000000..c5539b3 --- /dev/null +++ b/flash_eraseall @@ -0,0 +1,4 @@ +#!/bin/sh +echo "${0##*/} has been replaced by \`flash_erase 0 0\`; please use it" 1>&2 +[ $# -ne 0 ] && set -- "$@" 0 0 +exec flash_erase "$@" -- cgit v1.2.3