Less use of clear screen

This commit is contained in:
HikariKnight 2022-03-11 23:43:29 +01:00
parent b8cc5bae86
commit a22fae2f72
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
5 changed files with 30 additions and 10 deletions

View file

@ -13,7 +13,7 @@ function make_BACKUP () {
# Backup system files # Backup system files
sudo cp -v "/etc/modules" "$BACKUPDIR/etc/modules" sudo cp -v "/etc/modules" "$BACKUPDIR/etc/modules"
sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-rools/modules" sudo cp -v "/etc/initramfs-tools/modules" "$BACKUPDIR/etc/initramfs-tools/modules"
sudp cp -v "/etc/default/grub" "$BACKUPDIR/etc/default/grub" sudp cp -v "/etc/default/grub" "$BACKUPDIR/etc/default/grub"
# If a vfio.conf file exists, backup that too # If a vfio.conf file exists, backup that too

View file

@ -5,8 +5,7 @@ function get_GROUP () {
# Get the config paths # Get the config paths
source "$SCRIPTDIR/lib/paths.sh" source "$SCRIPTDIR/lib/paths.sh"
printf " printf "For this card to be passthrough-able, it must contain only:
For this card to be passthrough-able, it must contain only:
* The GPU/Graphic card * The GPU/Graphic card
* The GPU Audio Controller * The GPU Audio Controller

View file

@ -2,7 +2,11 @@
# Function to configure systemd-boot using kernelstub # Function to configure systemd-boot using kernelstub
function set_KERNELSTUB () { function set_KERNELSTUB () {
clear # Separator
printf "
############################################################
"
# Tell what we are going to do # Tell what we are going to do
echo "Adding vfio kernel arguments to systemd-boot using kernelstub" echo "Adding vfio kernel arguments to systemd-boot using kernelstub"
@ -28,7 +32,11 @@ function set_KERNELSTUB () {
# Function to configure grub # Function to configure grub
function set_GRUB () { function set_GRUB () {
clear # Separator
printf "
############################################################
"
# Get the config paths # Get the config paths
source "$SCRIPTDIR/lib/paths.sh" source "$SCRIPTDIR/lib/paths.sh"
@ -69,7 +77,11 @@ $SCRIPTDIR/backup/etc/default/grub
} }
function show_FINISH () { function show_FINISH () {
clear # Separator
printf "
############################################################
"
# Get the config paths # Get the config paths
source "$SCRIPTDIR/lib/paths.sh" source "$SCRIPTDIR/lib/paths.sh"

View file

@ -55,7 +55,8 @@ function set_MODULES () {
CMDLINE=$(cat "$SCRIPTDIR/config/kernel_args") CMDLINE=$(cat "$SCRIPTDIR/config/kernel_args")
# Ask if we shall disable video output on this card # Ask if we shall disable video output on this card
echo "Disabling video output in Linux for the card you want to use in a VM echo "
Disabling video output in Linux for the card you want to use in a VM
will make it easier to successfully do the passthrough without issues." will make it easier to successfully do the passthrough without issues."
read -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA read -p "Do you want to force disable video output in linux on this card? [Y/n]: " DISABLE_VGA
case "${DISABLE_VGA}" in case "${DISABLE_VGA}" in

View file

@ -42,7 +42,11 @@ A full documentation for debian/ubuntu systems can be found here: https://github
Press ENTER to continue once you have made a backup of your system. Press ENTER to continue once you have made a backup of your system.
" "
read -r read -r
clear
# Separator
printf "
############################################################
"
echo "This script assumes a few things: echo "This script assumes a few things:
* You have already enabled IOMMU, VT-d and/or AMD-v inside your UEFI/BIOS advanced settings. * You have already enabled IOMMU, VT-d and/or AMD-v inside your UEFI/BIOS advanced settings.
@ -74,7 +78,11 @@ Press ENTER to start creating your config from scratch.
NOTE: continuing will delete the contents of \"$SCRIPTDIR/config\" NOTE: continuing will delete the contents of \"$SCRIPTDIR/config\"
" "
read -r read -r
clear
# Separator
printf "
############################################################
"
if [ -d "$SCRIPTDIR/config" ]; if [ -d "$SCRIPTDIR/config" ];
then then
@ -138,7 +146,7 @@ echo ""
read -r -p "Is there more than 1 group in the output above? [y/N]: " YESNO read -r -p "Is there more than 1 group in the output above? [y/N]: " YESNO
case "${YESNO}" in case "${YESNO}" in
[Yy]*) [Yy]*)
clear echo ""
;; ;;
[Nn]*) [Nn]*)
echo "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\" echo "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\"