#!/usr/bin/env bash # Helpers sourced by the entry script. install_unlock_units() { log_info "Installing morning-unlock timer family" cat >"$UNLOCK_SERVICE" <"$UNLOCK_TIMER" <"$RGB_OFF_SERVICE" </dev/null; then log_ok "day-specific-shutdown-check.sh calls the lockdown action" else log_warn "day-specific-shutdown-check.sh does NOT call $ENTER_SCRIPT yet" log_warn " → re-run setup_midnight_shutdown.sh to regenerate it (see header)" fi [[ "$ok" == true ]] }