diff options
Diffstat (limited to 'etc/ncp-config.d/nc-format-USB.sh')
-rw-r--r-- | etc/ncp-config.d/nc-format-USB.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/ncp-config.d/nc-format-USB.sh b/etc/ncp-config.d/nc-format-USB.sh index d8bc0817..61360817 100644 --- a/etc/ncp-config.d/nc-format-USB.sh +++ b/etc/ncp-config.d/nc-format-USB.sh @@ -20,7 +20,7 @@ careful, this will destroy any data in the USB drive configure() { # count all disk devices except mmcblk0 - local NUM=$(( $( lsblk -ln | grep -v zram | awk '{ print $6 }' | grep disk | wc -l ) - 1 )) + local NUM=$(( $( lsblk -ln | grep "^sd[[:alpha:]].*disk" | awk '{ print $6 }' | wc -l ) - 1 )) # only one plugged in [[ $NUM != 1 ]] && { |