From 61dfffa48bac7e5349a04295afb87a08a64f6885 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Thu, 7 Jun 2018 23:58:05 +0200 Subject: T689: op_mode script for 'show disk X format' --- src/op_mode/show-disk-format.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/op_mode/show-disk-format.sh (limited to 'src/op_mode/show-disk-format.sh') 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" -- cgit v1.2.3