#!/bin/bash if findmnt /srv/priv >/dev/null; then Already unlocked exit fi echo - echo - Unlocking /srv/priv sudo mount /srv/priv if ! findmnt /srv/priv >/dev/null; then exit fi echo - echo - Binding encrypted folders elsewhere in the filesystem # (To be filled in later when setting up individual services) echo - echo - Resuming system startup sudo systemctl start decrypt.target