#!/bin/bash # Script to collect and package information about Sony Vaio models and BIOS # to assist development of SNC driver. # install required packages echo "Checking and installing tools..." apt-get install dmidecode acpidump echo -n -e "\nGetting model information: " # get model information MODEL="$(dmidecode -s system-product-name)" BIOS="$(dmidecode -s bios-version)" echo "Model: $MODEL, BIOS: $BIOS" # build the filename FILENAME="${MODEL}-${BIOS}.dsdt" # get the ACPI DSDT echo "Dumping the ACPI Differentiated System Description Table (DSDT)" acpidump -b -t DSDT -o /tmp/${FILENAME} # compress and pack it echo "Packing and compressing the DSDT..." tar -czf /tmp/${FILENAME}.tar.gz -C /tmp/ ${FILENAME} echo -e "All done, thank-you\n" echo "If you want, you can now remove the acpidump and dmidecode packages using:" echo -e "\tsudo apt-get remove acpidump dmidecode\n" echo -e "Please attach the file /tmp/${FILENAME}.tar.gz to a bug report.\n"