summaryrefslogtreecommitdiffstats
path: root/abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:09 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-01 18:26:22 (GMT)
commite2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch)
treebee3fe89f2988dd244e11791755e129aa8c03b14 /abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh
parent8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff)
downloadlinhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz
linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh')
-rwxr-xr-xabs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh98
1 files changed, 98 insertions, 0 deletions
diff --git a/abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh b/abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh
new file mode 100755
index 0000000..25111dd
--- /dev/null
+++ b/abs/not_built/core/tweaker/bin/twk_fingerprint_hardware.sh
@@ -0,0 +1,98 @@
+#!/bin/bash
+
+# Copyright 2007, 2008 Robert ("Bob") Igo of StormLogic, LLC and mythic.tv.
+#
+# 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 3 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, see <http://www.gnu.org/licenses/>.
+
+# This script will grab USB and PCI data and dump it to a file for the
+# user to post.
+
+output_file=/tmp/fingerprint.txt
+maintainer="Human"
+thread=""
+
+Usage() {
+ echo "USAGE:"
+ echo `basename $0` " [-a]"
+ echo "-a: advanced mode"
+ echo
+ echo "EXAMPLE: $0"
+ exit 3
+}
+
+while getopts "a" FLAG ; do
+ case "$FLAG" in
+ a) ADVANCED_MODE=1;;
+ *) Usage;;
+ esac
+done
+
+check_for_root() {
+ if [ `whoami` != "root" ]; then
+ echo -n `basename $0`
+ echo " must be run as root. Exiting.";
+ exit;
+ fi
+}
+
+poll_PCI() {
+ echo \
+"#####
+# lspci -vv
+#####" >> $output_file
+ lspci -vv >> $output_file
+ echo "" >> $output_file
+
+ echo \
+"#####
+# lspci -mn
+#####" >> $output_file
+ lspci -mn >> $output_file
+ echo "" >> $output_file
+}
+
+poll_USB() {
+ echo \
+"#####
+# /proc/bus/usb/devices
+#####" >> $output_file
+cat /proc/bus/usb/devices >> $output_file
+}
+
+instruct() {
+ echo "Your hardware fingerprint is in $output_file"
+ echo -n "Please PM it to $maintainer"
+ if [ "$thread" != "" ]; then
+ echo " or post it to"
+ echo -n "$thread"
+ fi
+ echo "."
+ echo "It should be accompanied by a list of changes that you made to the baseline
+installation in order to improve MythTV on your hardware."
+
+ echo "If you feel up to the task, feel free to prune out any entries that are for
+very low-level devices like memory controllers, USB subsystems, etc. before
+sending the fingerprint."
+}
+
+main() {
+ check_for_root
+ > $output_file
+ poll_PCI
+ poll_USB
+ instruct
+}
+
+main
+