#!/bin/bash
set -euo pipefail

LOG_DIR="./logs"
mkdir -p "$LOG_DIR"

UDM_HOST="100.100.10.1"
UDM_SSH_USER="root"
LEASE_FILE="/mnt/.rwfs/data/data/udapi-config/dnsmasq.lease"
RESERVATION_FILE="reserved_ips.conf"



generate_mac() {
  printf '02:00:00:%02x:%02x:%02x\n' $((RANDOM%256)) $((RANDOM%256)) $((RANDOM%256))
}

generate_root_password() {
  tr -dc 'A-Za-z0-9!@#$%^&*()-_=+' < /dev/urandom | head -c 16
}
