summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2018-06-07 23:58:05 +0200
committerRunar Borge <runar@borge.nu>2018-06-07 23:58:05 +0200
commit61dfffa48bac7e5349a04295afb87a08a64f6885 (patch)
tree623aa17e6b45c054f1a40b4e636f153edaac538e /src
parentaad1bd7eed672e95d9f49b5c492ba59b30c6b68c (diff)
downloadvyos-1x-61dfffa48bac7e5349a04295afb87a08a64f6885.tar.gz
vyos-1x-61dfffa48bac7e5349a04295afb87a08a64f6885.zip
T689: op_mode script for 'show disk X format'
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/show-disk-format.sh8
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"