Browse Source

Use findmnt

Use findmnt instead of mount | grep
findmnt is part of util-linux and should be available on almost all systems
pull/130/head
MegaV0lt 4 years ago
committed by GitHub
parent
commit
6e110ae11c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      log2ram

+ 1
- 1
log2ram View File

@@ -56,7 +56,7 @@ syncFromDisk () {
}

wait_for () {
while ! mount | grep "$1" > /dev/null; do
while ! findmnt "$1" > /dev/null; do
sleep 0.1
done
}


Loading…
Cancel
Save