diff options
author | Runar Borge <runar@borge.nu> | 2018-06-07 23:58:05 +0200 |
---|---|---|
committer | Runar Borge <runar@borge.nu> | 2018-06-07 23:58:05 +0200 |
commit | 61dfffa48bac7e5349a04295afb87a08a64f6885 (patch) | |
tree | 623aa17e6b45c054f1a40b4e636f153edaac538e | |
parent | aad1bd7eed672e95d9f49b5c492ba59b30c6b68c (diff) | |
download | vyos-1x-61dfffa48bac7e5349a04295afb87a08a64f6885.tar.gz vyos-1x-61dfffa48bac7e5349a04295afb87a08a64f6885.zip |
T689: op_mode script for 'show disk X format'
-rwxr-xr-x | src/op_mode/show-disk-format.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/op_mode/show-disk-format.sh b/src/op_mode/show-disk-format.sh new file mode 100755 index 000000000..61b15a52b --- /dev/null +++ b/src/op_mode/show-disk-format.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +disk_dev="/dev/$1" +if [ ! -b "$disk_dev" ];then + echo "$3 is not a disk device" + exit 1 +fi +sudo /sbin/fdisk -l "$disk_dev" |