#!/bin/bash # # Configuration DEST=sda1 FORMAT=yes # clear_console if [[ -z $(cat /proc/partitions | grep $DEST) ]]; then echo "Device not partitioned"; exit 0 fi figlet -f banner "warning" #echo "Edit file !!!"; exit 0; # DELETE OR COMMENT THIS LINE TO CONTINUE # # # Do not modify anything below # # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script." exit 1 fi MODEL=$(hdparm -i /dev/sda | perl -n -e 'print "$1\n" if (m/model=(.+?),/i);') cat > .install-exclude <