#!/bin/sh
# Mount pre-provisioned storage only. No formatting, AI start or UV permit.
case "$1" in
 start)
  /usr/bin/python3 -B /opt/ai-nail/Vision/source/storage_mount.py || {
   echo 'ai-nail: persistent storage unavailable; service must remain inhibited' >&2
   exit 1
  }
  ;;
 stop)
  # The power protocol owns writer shutdown and read-only remount verification.
  # Do not unmount here or fabricate shutdown readiness.
  ;;
 *) echo "Usage: $0 {start|stop}" >&2; exit 2 ;;
esac
exit 0
