summaryrefslogtreecommitdiff
path: root/src/completion
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2018-06-07 23:31:37 +0200
committerRunar Borge <runar@borge.nu>2018-06-07 23:31:37 +0200
commit9e14244d84e1525808cecb586e6df93381dd6543 (patch)
tree624b5aac0e6d885300456ee29f028a734c9fae4e /src/completion
parent6b9e8d75d87b859a680f55c694354a24b132cde3 (diff)
downloadvyos-1x-9e14244d84e1525808cecb586e6df93381dd6543.tar.gz
vyos-1x-9e14244d84e1525808cecb586e6df93381dd6543.zip
T689: convert show disks with completion script to new script
Diffstat (limited to 'src/completion')
-rwxr-xr-xsrc/completion/list_disks.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/completion/list_disks.sh b/src/completion/list_disks.sh
new file mode 100755
index 000000000..f32e558fd
--- /dev/null
+++ b/src/completion/list_disks.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Completion script used by show disks to collect physical disk
+
+awk 'NR > 2 && $4 !~ /[0-9]$/ { print $4 }' </proc/partitions