more install things

This commit is contained in:
2025-09-25 15:34:30 +02:00
parent 89ad062d42
commit 8e3462aaf2
5 changed files with 214 additions and 10 deletions

View File

@@ -6,7 +6,14 @@
# Configuration
MOUNT_BASE="/media/usb"
LOG_FILE="/var/log/usb_automount.log"
USER="pi"
# Load environment variables from .env file if it exists
if [[ -f ".env" ]]; then
source .env
fi
# Set defaults if not defined in .env
USER="${USER:-pi}"
# Function to log messages
log_message() {