From ef15a3760a1d66543b8bda773748a78c8c05e99b Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Sat, 23 Jun 2018 23:32:47 +0200 Subject: T689: changed from dash to underscore in filenames --- 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