Browse Source

added script to translate ataX to sdX

master
Marc 2 years ago
parent
commit
32e6340cdd
1 changed files with 3 additions and 0 deletions
  1. 3
      .config/scripts/translate_ata_to_dev.sh

3
.config/scripts/translate_ata_to_dev.sh

@ -0,0 +1,3 @@
!#/bin/sh
find -L /sys/bus/pci/devices/*/ata*/host*/target* -maxdepth 3 -name "sd*" 2>/dev/null | egrep block |egrep --colour '(ata[0-9]*)|(sd.*)'
Loading…
Cancel
Save