From b1f761e02556eb97f93f4c0a43ac7809f3ed05a6 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 21 Jun 1997 16:24:39 +0000 Subject: If $OD & $AWK don't exist, try to get them from /usr/bin, so that this script works under linux too. --- sutils/e2os.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sutils/e2os.sh b/sutils/e2os.sh index fd233b56..10fe5087 100755 --- a/sutils/e2os.sh +++ b/sutils/e2os.sh @@ -20,12 +20,16 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # +USAGE="Usage: $0 DEVICE [OS]" + DD=${DD-/bin/dd} OD=${OD-/bin/od} SED=${SED-/bin/sed} AWK=${AWK-/bin/gawk} -USAGE="Usage: $0 DEVICE [OS]" +# Hack to allow this script to work well under linux too. +test ! -x "$OD" -a -x /usr/bin/od && OD=/usr/bin/od +test ! -x "$AWK" -a -x /usr/bin/gawk && AWK=/usr/bin/gawk while :; do case "$1" in -- cgit v1.2.3