From: Jesper Juhl <juhl-lkml@dif.dk>
To: "Michał Piotrowski" <piotrowskim@trex.wsi.edu.pl>
Cc: Jesper Juhl <jesper.juhl@gmail.com>,
Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>,
randy_dunlap <rdunlap@xenotime.net>,
linux-kernel@vger.kernel.org
Subject: Re: Script to help users to report a BUG
Date: Thu, 23 Jun 2005 20:59:08 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.62.0506232057150.7467@dragon.hyggekrogen.localhost> (raw)
In-Reply-To: <42BAE190.20405@trex.wsi.edu.pl>
On Thu, 23 Jun 2005, [ISO-8859-2] Micha? Piotrowski wrote:
> Hi,
>
> Here is the latest verion:
> http://stud.wsi.edu.pl/~piotrowskim/files/ort/ort-a8.tar.bz2
>
> Changelog:
> - Randy's patch
> - Jesper's idea (Great thanks. I haven't test it yet ;))
> - Tainted kernel detection ;)
> - Some code "reorganization"
>
Here's a small patch with a few suggested changes. I don't know if you'll
like all the changes, but feel free to use the bits you like and drop the
rest :-)
--- ort.sh.original 2005-06-23 20:37:07.000000000 +0200
+++ ort.sh 2005-06-23 20:55:19.000000000 +0200
@@ -4,17 +4,17 @@
# Copyright (C) 2005 Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
# Copyright (C) 2005 Paul TT <paultt@bilug.linux.it>
# Copyright (C) 2005 Randy Dunlap <rdunlap@xenotime.net>
-
+#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
-
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@@ -23,16 +23,16 @@
ORT_O=$1
VER=v.a8
-M_EMAIL=a@b.c
-U_EMAIL=user@email
+M_EMAIL=joe.random.maintainer@somewhere.domain.example
+U_EMAIL=reporter@mylinuxbox.domain.example
LKML=linux-kernel@vger.kernel.org
-TOPIC=ORT
+TOPIC="Automagically generated bug report (ORT)"
EDITOR=vim
EM_CLI=mutt
help() {
- echo "Usage: [root@ng02 ort]$ ./ort.sh oops.txt"
+ echo "Usage: [root@mylinuxbox ~]$ ./ort.sh oops.txt"
echo "You need to be root to run the script"
exit 1
}
@@ -43,7 +43,7 @@
help
elif [[ ! -f "$ORT_O" ]]
then
- echo "ERROR: You must give proper file with Oops"
+ echo "ERROR: You must provide a proper file with the Oops text"
help
exit 1
fi
@@ -62,11 +62,11 @@
echo "OOPS Reporting Tool $VER" > $ORT_F
}
-chose_editor() {
+choose_editor() {
END_B=0
while [ $END_B = 0 ]
do
- echo -e "\nChose Your favourite text editor"
+ echo -e "\nChoose Your favourite text editor"
echo -e "1 - vim"
echo -e "2 - emacs"
echo -e "3 - mcedit"
@@ -91,7 +91,7 @@
do
echo -e "\nWrite editor name"
read EDITOR
- echo -e "You wrote < $EDITOR > is it corect?"
+ echo -e "You wrote < $EDITOR > is it correct?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -107,11 +107,11 @@
done
}
-chose_em_cli() {
+choose_em_cli() {
END_B=0
while [ $END_B = 0 ]
do
- echo -e "\nChose Your favourite (and configured) email client (i haven't test it ;))"
+ echo -e "\nChoose Your favourite (and configured) email client (I have not tested it ;))"
echo -e "1 - mutt (it may not work)"
echo -e "2 - sendmail"
echo -e "o - other"
@@ -131,7 +131,7 @@
do
echo -e "\nWrite email client name"
read EM_CLI
- echo -e "You wrote < $EM_CLI > is it corect?"
+ echo -e "You wrote < $EM_CLI > is it correct?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -188,7 +188,8 @@
if [ "$TAINTED" > "$NULL" ]
then
echo "Tainted kernel!!!"
- echo "You can't send it to LKML"
+ echo "Please reproduce with an untainted kernel before you send the report to LKML."
+ echo "This script will not allow you to send a report for a tainted kernel."
LKML=banned@banned.org
fi
}
@@ -242,7 +243,7 @@
}
point_7_8() {
- echo -e "\n[7.8.] Dmesg log" >> $ORT_F
+ echo -e "\n[7.8.] dmesg log" >> $ORT_F
dmesg -s 100000 >> $ORT_F
}
@@ -254,7 +255,7 @@
#echo -e "\n[7.9.] /proc copy"
#while [ $END = 0 ]
#do
-# echo -e "\nDo You want to create /proc copy?"
+# echo -e "\nDo you want to create /proc copy?"
# echo -e "[Y(es)/N(o)]"
# read TXT
# if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -278,7 +279,7 @@
END=0
while [ $END = 0 ]
do
- echo -e "\nDo You want to pass the path to kernel .config file?"
+ echo -e "\nDo you want to manually enter the path to the kernels .config file?"
echo -e "[A(utomagic)/Y(es)/S(kip)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -327,7 +328,7 @@
END=0
while [ $END = 0 ]
do
- echo -e "\nDo You want to see $ORT_F?"
+ echo -e "\nDo you want to see $ORT_F?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -345,7 +346,7 @@
END=0
while [ $END = 0 ]
do
- echo -e "\nDo You want to edit $ORT_F in $EDITOR?"
+ echo -e "\nDo you want to edit $ORT_F in $EDITOR?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -363,7 +364,7 @@
END_A=0
while [ $END_A = 0 ]
do
- echo -e "\nDo you want to list MAINTERNERS list?"
+ echo -e "\nDo you want to list the MAINTERNERS file to locate the proper maintainer?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -384,7 +385,7 @@
END_A=0
while [ $END_A = 0 ]
do
- echo -e "\nWrite mainterner e-mail"
+ echo -e "\nWrite maintainer e-mail"
read M_EMAIL
echo -e "You wrote < $M_EMAIL > is it corect?"
echo -e "[Y(es)/N(o)]"
@@ -403,7 +404,8 @@
END_A=0
while [ $END_A = 0 ]
do
- echo -e "\nWrite your e-mail"
+ echo -e "\nWrite your e-mail (to be used as from address)"
+ echo -e "Please make sure it's correct so people can get back to you."
read U_EMAIL
echo -e "You wrote < $U_EMAIL > is it corect?"
echo -e "[Y(es)/N(o)]"
@@ -422,7 +424,7 @@
END=0
while [ $END = 0 ]
do
- echo -e "\nDo You want to send $ORT_F?"
+ echo -e "\nDo you want to send $ORT_F?"
echo -e "[Y(es)/N(o)]"
read TXT
if [ $TXT = "Y" ] || [ $TXT = "y" ]
@@ -433,8 +435,8 @@
while [ $END_1 = 0 ]
do
echo -e "1 to LKML"
- echo -e "2 to mainterner"
- echo -e "3 to mainterner and LKML"
+ echo -e "2 to maintainer"
+ echo -e "3 to maintainer and LKML"
read TXT_1
if [ $TXT_1 = "1" ]
then
@@ -443,7 +445,7 @@
mutt -s "[OOPS] $TOPIC" -i $ORT_F -c $LKML
elif [ $EM_CLI = "sendmail" ]
then
- echo -e "Subject: Automagically generated bug report\n`cat topic.txt`\n" | sendmail -f <$U_EMAIL> $LKML
+ echo -e "Subject: ${TOPIC}\n`cat ${ORT_F}`\n" | sendmail -f $U_EMAIL $LKML
fi
END_1=1
elif [ $TXT_1 = "2" ]
@@ -472,17 +474,14 @@
rm_ortmp
logo
-chose_editor
-chose_em_cli
+choose_editor
+choose_em_cli
point_1
point_2
point_3
-
point_4
-
point_5
-
point_6
point_7_1
@@ -496,11 +495,10 @@
#point_7_9
point_8
-
point_9
less_r
edit_r
send_r
-rm_ortmp
\ No newline at end of file
+rm_ortmp
Kind regards,
Jesper Juhl
next prev parent reply other threads:[~2005-06-23 19:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-19 20:32 Paolo Ciarrocchi
2005-06-22 19:08 ` randy_dunlap
2005-06-22 20:52 ` Michał Piotrowski
2005-06-23 0:47 ` randy_dunlap
2005-06-23 18:24 ` Jesper Juhl
2005-06-23 19:06 ` randy_dunlap
2005-06-23 19:13 ` Jesper Juhl
2005-06-23 17:48 ` Michał Piotrowski
[not found] ` <4d8e3fd305062313032c9789e8@mail.gmail.com>
2005-06-23 18:23 ` Michał Piotrowski
[not found] ` <4d8e3fd305062400524f0ad358@mail.gmail.com>
2005-06-24 6:52 ` Michał Piotrowski
2005-06-24 15:41 ` randy_dunlap
2005-06-24 8:17 ` Michał Piotrowski
[not found] ` <4d8e3fd3050624032264081edf@mail.gmail.com>
[not found] ` <4d8e3fd3050624050955aac41b@mail.gmail.com>
2005-06-24 14:50 ` Martin J. Bligh
[not found] ` <42B5C747.5050207@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506200027686cbafa@mail.gmail.com>
[not found] ` <42B6D74B.3020409@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506201322242d540a@mail.gmail.com>
[not found] ` <4d8e3fd305062205371b0a506d@mail.gmail.com>
[not found] ` <42B951B4.80703@trex.wsi.edu.pl>
[not found] ` <4d8e3fd30506220656241e1521@mail.gmail.com>
[not found] ` <42B9544E.7030007@trex.wsi.edu.pl>
[not found] ` <4d8e3fd305062212343d9849ee@mail.gmail.com>
2005-06-22 21:27 ` Michał Piotrowski
[not found] ` <42B9D391.4020602@trex.wsi.edu.pl>
[not found] ` <4d8e3fd305062300541eca2c10@mail.gmail.com>
2005-06-23 12:06 ` Michał Piotrowski
[not found] ` <9a8748490506231011128f7a38@mail.gmail.com>
2005-06-23 16:21 ` Michał Piotrowski
2005-06-23 18:59 ` Jesper Juhl [this message]
2005-06-23 17:27 ` randy_dunlap
2005-06-23 18:28 ` Vara Prasad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.62.0506232057150.7467@dragon.hyggekrogen.localhost \
--to=juhl-lkml@dif.dk \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paolo.ciarrocchi@gmail.com \
--cc=piotrowskim@trex.wsi.edu.pl \
--cc=rdunlap@xenotime.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®