From 9f3928ecfdda17602412b24e0b69324071cc0660 Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Tue, 2 Jul 2024 19:49:09 +0200 Subject: [PATCH] tree: some fixes Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 2 +- files/initrd/opt/arc/include/functions.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index 8b15c0c8..666dc9e4 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -69,7 +69,7 @@ ntpCheck # Mounts backtitle dynamically function backtitle() { if [ -n "${NEWTAG}" ] && [ "${NEWTAG}" != "${ARC_VERSION}" ] && [ "${OFFLINE}" == "false" ]; then - ARC_TITLE="${ARC_TITLE} -> ${NEWTAG}" + ARC_TITLE="${ARC_TITLE} > ${NEWTAG}" fi if [ -z "${MODEL}" ]; then MODEL="(Model)" diff --git a/files/initrd/opt/arc/include/functions.sh b/files/initrd/opt/arc/include/functions.sh index ad5e27af..175e6c19 100755 --- a/files/initrd/opt/arc/include/functions.sh +++ b/files/initrd/opt/arc/include/functions.sh @@ -250,14 +250,14 @@ function _sort_netif() { # 1 - device path function getBus() { BUS="" - # xen - [ -z "${BUS}" ] && BUS=$(lsblk -dpno KNAME,SUBSYSTEMS 2>/dev/null | grep "${1} " | grep -q "xen" && echo "xen") # usb/ata(sata/ide)/scsi [ -z "${BUS}" ] && BUS=$(udevadm info --query property --name "${1}" 2>/dev/null | grep ID_BUS | cut -d= -f2 | sed 's/ata/sata/') # usb/sata(sata/ide)/nvme [ -z "${BUS}" ] && BUS=$(lsblk -dpno KNAME,TRAN 2>/dev/null | grep "${1} " | awk '{print $2}') #Spaces are intentional # usb/scsi(sata/ide)/virtio(scsi/virtio)/mmc/nvme [ -z "${BUS}" ] && BUS=$(lsblk -dpno KNAME,SUBSYSTEMS 2>/dev/null | grep "${1} " | awk '{print $2}' | awk -F':' '{print $(NF-1)}' | sed 's/_host//') # Spaces are intentional + # xen + [ -z "${BUS}" ] && BUS=$(lsblk -dpno KNAME,SUBSYSTEMS 2>/dev/null | grep "${1} " | grep -q "xen" && echo "xen") echo "${BUS}" return 0 }