Add files via upload

This commit is contained in:
kneutron 2021-04-09 06:27:08 -05:00 committed by GitHub
parent aa574f17f2
commit 541cd0de8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

11
OSX/disks-osx.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
# NOTE osx does not seem to have a concept of wwn anywhere that I can find (smartctl, diskutil, dev/*)
DBI=/var/run/disk/by-id
DBP=/var/run/disk/by-path
DBS=/var/run/disk/by-serial
ls -l $DBI $DBP $DBS |egrep -v 'var/|s[0-9]|total' |column -t |sort -k 11 |awk '{ print $11" "$10" "$9 }'
diskutil list |grep -A 2 physical

10
OSX/findmedia-osx.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
DBI=/var/run/disk/by-id
DBP=/var/run/disk/by-path
DBS=/var/run/disk/by-serial
# 2019.0430 by-path is kinda useless, but re-enable if needed
#ls -lR $DBI $DBP $DBS |grep $1
ls -lR $DBI $DBS |grep $1 |awk '{ print $11" "$10" "$9 }' |column -t