Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-05-28 06:03:13 +0300
committernachoparker <nacho@ownyourbits.com>2018-05-28 06:03:30 +0300
commited0a368e7102d12bb56aef57a27b573ef960fd76 (patch)
tree2a6f4a505000d33620e7110f163c2e121760ec75 /etc
parent5ea64fdc1209bbec1a3b99afa8105e7622f143d1 (diff)
nc-format-USB: fix when ZRAM activev0.56.12
Diffstat (limited to 'etc')
-rw-r--r--etc/ncp-config.d/nc-format-USB.sh2
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 404155d5..e9981c84 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 -l -n | awk '{ print $6 }' | grep disk | wc -l ) - 1 ))
+ local NUM=$(( $( lsblk -l -n | grep -v zram | awk '{ print $6 }' | grep disk | wc -l ) - 1 ))
# only one plugged in
[[ $NUM != 1 ]] && {