mod 4 standalone, depends

This commit is contained in:
kneutron 2021-04-12 15:04:54 -05:00 committed by GitHub
parent 77fddfdb39
commit 84896313d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,16 @@
#!/bin/bash
# DEPENDS: smartctl, parted, fdisk
argg=$1
source ~/bin/failexit.mrg
#source ~/bin/failexit.mrg
# failexit.mrg
function failexit () {
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
exit $1
}
smartctl -a /dev/$argg |head -n 16
fdisk -l /dev/$argg