/usr/share/gmtkbabel/erase.sh is in gmtkbabel 0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright © 2010, Elena Grandi
# Copyright © 2010, David Paleino <d.paleino@gmail.com>
#
# Released under 3-clause BSD license; see COPYING for details.
. /usr/share/gmtkbabel/common.sh
# ****** Strings ************************************************************* #
S_TITLE="`gettext \"iBlue 747 erase\"`"
S_CONFIRM_ERASE="`gettext \"Erase logger memory?\"`"
# ****** Script (do not edit below this point) ******************************* #
TMPFILE=`mktemp /tmp/gmtkbabel.XXX`
trap "rm -rf $TMPFILE; exit" INT TERM EXIT;
if zenity --question --title="$S_TITLE" --text="$S_CONFIRM_ERASE"
then
mtkbabel -p $PORT -l off -E >$TMPFILE 2>&1
mtkbabel -p $PORT -l on >>$TMPFILE 2>&1
cat $TMPFILE | zenity --text-info
fi
|