diff options
-rw-r--r-- | functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh index 65bf6fb..664aa24 100644 --- a/functions.sh +++ b/functions.sh @@ -80,6 +80,10 @@ getuuid() { lsblk -n -o UUID "$1" } +getdiskbypart() { + lsblk -s --raw -o NAME -n "$1" | tail -n1 +} + as-root() { if [ "$UID" == 0 ]; then "$@" |