diff --git a/scripts/umbrel-os/external-storage/is-mounted b/scripts/umbrel-os/external-storage/is-mounted deleted file mode 100755 index 0ec2ec1..0000000 --- a/scripts/umbrel-os/external-storage/is-mounted +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -# This script returns a non-zero exit code if $UMBREL_ROOT is NOT -# mounted on external storage. - -UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../../..)" - -df -h "${UMBREL_ROOT}" | grep --quiet '/dev/sd' diff --git a/scripts/umbrel-os/external-storage/mount b/scripts/umbrel-os/external-storage/mount index 3b6e928..796e684 100755 --- a/scripts/umbrel-os/external-storage/mount +++ b/scripts/umbrel-os/external-storage/mount @@ -138,7 +138,7 @@ main () { echo "Checking Umbrel root is now on external storage..." sync sleep 1 - "${UMBREL_ROOT}/scripts/umbrel-os/external-storage/is-mounted" + df -h "${UMBREL_ROOT}" | grep --quiet '/dev/sd' echo "Mount script completed successfully!" }