#!/bin/bash
set -euo pipefail
source /usr/local/lib/pivilion/common.sh
pivilion_load_config

pivilion_print_motd

cat <<EOF

Web root: $PIVILION_WEBROOT

Commands:
  pivilion   show this status
  onion      select Tor onion mode for the next reboot
  hotspot    select open captive-hotspot mode for the next reboot
  pikey      save upstream Wi-Fi credentials for onion mode
  generator  enable or disable the gallery generator on port 81
  static     convert the current gallery to static files
  hotglue    install or restore Hotglue
  htaccess   reset or remove captive redirect rules
  pivilion-diagnose  check captive DNS, HTTP redirects, and services
EOF
