#!/command/with-contenv bashio # shellcheck shell=bash # ============================================================================== # Umount all drivers. # ============================================================================== declare interface declare ipaddress interface=$(bashio::network.name) ipaddress=$(bashio::network.ipv4_address ${interface}) if [[ -f /tmp/local_mount ]]; then readarray -t umdev /dev/null || true fi fi if [[ -f /tmp/remote_mount ]]; then readarray -t umdev