]> xenbits.xen.org Git - xenclient/build.git/commitdiff
[xenclient/skeleton] Rename bugtool to status-report.
authorJean Guyader <jean.guyader@eu.citrix.com>
Wed, 16 Sep 2009 09:40:38 +0000 (10:40 +0100)
committerJean Guyader <jean.guyader@eu.citrix.com>
Wed, 16 Sep 2009 09:40:38 +0000 (10:40 +0100)
target/generic/target_xenclient_skeleton/usr/bin/bugtool [deleted file]
target/generic/target_xenclient_skeleton/usr/bin/status-report [changed from symlink to file mode: 0755]

diff --git a/target/generic/target_xenclient_skeleton/usr/bin/bugtool b/target/generic/target_xenclient_skeleton/usr/bin/bugtool
deleted file mode 100755 (executable)
index a5f16c5..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-#! /bin/sh -e
-
-name="`basename $0`"
-d="`date "+%Y%m%d%H%M%S"`"
-
-saved_tarball="/tmp/$name/$name-$d.tar.bz2"
-base_path="`dirname "$saved_tarball"`/`basename "$saved_tarball" .tar.bz2`"
-
-files=""
-
-welcome()
-{
-cat <<EOF
-XenClient $name
-
-This application will collate the Xen dmesg output, details of the
-hardware configuration of your machine, information about the build of
-Xen that you are using, plus, if you allow it, various logs.
-
-The collated information will be saved as a .tar.bz2 for archiving or
-sending to a Technical Support Representative.
-
-To copy the file away from the host a command like scp or ftpput could
-be used.
-        scp <local-file> <remote-user>@<remote-host>:<remote-file>
-        ftpput <remote-host> <remote-file> <local-file>
-
-The logs may contain private information, and if you are at all
-worried about that, you should exit now, or you should explicitly
-exclude those logs from the archive.
-
-EOF
-}
-
-archive()
-{
-        local out="$1"
-        local files="$2"
-
-        tar -cfO $files | bzip2 -z -c > "$out"
-}
-
-save_file()
-{
-        local save_path="$1"
-        local save_file="$2"
-        local save_out="$3"
-
-        cd "$save_path"
-        archive "${base_path}/${save_out}.tar.bz2" $save_file > ${base_path}/${name}.log 2>&1
-        files="$files ${save_out}.tar.bz2"
-        cd - > /dev/null
-}
-
-save_out()
-{
-        local save_out_cmd="$1"
-        local save_out_out="$2"
-
-        $save_out_cmd > "${base_path}/${save_out_out}.log" 2>&1
-        files="$files ${save_out_out}.log"
-}
-
-bugtool_file()
-{
-        local base="$1"
-
-        cd "${base_path}"
-        archive "${saved_tarball}" "$files ${name}.log"
-        cd - > /dev/null
-        rm -rf "${base_path}"
-}
-
-welcome
-
-mkdir -p "${base_path}"
-save_file "/var/log" "messages*" "syslog"
-save_file "/config/vms" "*" "vms"
-save_file "/var/log" "xenstored-access*" "xenstored-access"
-save_file "/tmp" "xenmgr-xenvm*" "xenmgr-xenvm"
-save_out "dmesg" "dmesg"
-save_out "xenops dmesg" "xen_dmesg"
-save_out "dmidecode" "dmidecode"
-save_out "xenops list" "xenops_list"
-save_out "brctl show" "brctl_show"
-save_out "ifconfig" "ifconfig"
-bugtool_file "/tmp/$name/$name-$d"
-sync
-
-echo "Writing tarball ${saved_tarball} successful."
deleted file mode 120000 (symlink)
index 216ca54efe5c34c5166fd477671785ad8ad2ce36..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-bugtool
\ No newline at end of file
new file mode 100755 (executable)
index 0000000000000000000000000000000000000000..a5f16c5c10b0b153bae1f38b8894c77535471ab3
--- /dev/null
@@ -0,0 +1,90 @@
+#! /bin/sh -e
+
+name="`basename $0`"
+d="`date "+%Y%m%d%H%M%S"`"
+
+saved_tarball="/tmp/$name/$name-$d.tar.bz2"
+base_path="`dirname "$saved_tarball"`/`basename "$saved_tarball" .tar.bz2`"
+
+files=""
+
+welcome()
+{
+cat <<EOF
+XenClient $name
+
+This application will collate the Xen dmesg output, details of the
+hardware configuration of your machine, information about the build of
+Xen that you are using, plus, if you allow it, various logs.
+
+The collated information will be saved as a .tar.bz2 for archiving or
+sending to a Technical Support Representative.
+
+To copy the file away from the host a command like scp or ftpput could
+be used.
+        scp <local-file> <remote-user>@<remote-host>:<remote-file>
+        ftpput <remote-host> <remote-file> <local-file>
+
+The logs may contain private information, and if you are at all
+worried about that, you should exit now, or you should explicitly
+exclude those logs from the archive.
+
+EOF
+}
+
+archive()
+{
+        local out="$1"
+        local files="$2"
+
+        tar -cfO $files | bzip2 -z -c > "$out"
+}
+
+save_file()
+{
+        local save_path="$1"
+        local save_file="$2"
+        local save_out="$3"
+
+        cd "$save_path"
+        archive "${base_path}/${save_out}.tar.bz2" $save_file > ${base_path}/${name}.log 2>&1
+        files="$files ${save_out}.tar.bz2"
+        cd - > /dev/null
+}
+
+save_out()
+{
+        local save_out_cmd="$1"
+        local save_out_out="$2"
+
+        $save_out_cmd > "${base_path}/${save_out_out}.log" 2>&1
+        files="$files ${save_out_out}.log"
+}
+
+bugtool_file()
+{
+        local base="$1"
+
+        cd "${base_path}"
+        archive "${saved_tarball}" "$files ${name}.log"
+        cd - > /dev/null
+        rm -rf "${base_path}"
+}
+
+welcome
+
+mkdir -p "${base_path}"
+save_file "/var/log" "messages*" "syslog"
+save_file "/config/vms" "*" "vms"
+save_file "/var/log" "xenstored-access*" "xenstored-access"
+save_file "/tmp" "xenmgr-xenvm*" "xenmgr-xenvm"
+save_out "dmesg" "dmesg"
+save_out "xenops dmesg" "xen_dmesg"
+save_out "dmidecode" "dmidecode"
+save_out "xenops list" "xenops_list"
+save_out "brctl show" "brctl_show"
+save_out "ifconfig" "ifconfig"
+bugtool_file "/tmp/$name/$name-$d"
+sync
+
+echo "Writing tarball ${saved_tarball} successful."