sata detection logic
This commit is contained in:
@ -88,7 +88,7 @@ medium1='''
|
||||
|
||||
generate_medium2_layout() {
|
||||
local usb_drives=$(ls -l /dev/disk/by-path/pci-0000:0b:00.0* 2>/dev/null | awk -F'/' '{print $NF}')
|
||||
local sata_drives=$(ls -l /dev/disk/by-path/pci-0000:0c:00.0-ata-* 2>/dev/null | grep -v "part" | awk -F'/' '{print $NF}')
|
||||
local sata_drives=$(ls -l /dev/disk/by-path/pci-0000:0c:00.0-ata-[0-9]$ 2>/dev/null | awk -F'/' '{print $NF}')
|
||||
local nvme_drive=$(ls -l /dev/disk/by-path/pci-0000:0d:00.0* 2>/dev/null | awk -F'/' '{print $NF}')
|
||||
|
||||
# Print header
|
||||
|
||||
Reference in New Issue
Block a user