#!/bin/bash
# Simple wrapper to build a custom Internet-Box firmware image.
# This is a placeholder that uses Docker to run an OpenWrt buildroot.

set -e

IMAGE_DIR=${IMAGE_DIR:-"$PWD/build"}
mkdir -p "$IMAGE_DIR"

echo "Starting firmware build..."
docker run --rm -v "$IMAGE_DIR":/output openwrt/sdk:latest /bin/sh -c "\
  echo 'Place build commands here'; sleep 1"

echo "Firmware artifacts will be in $IMAGE_DIR"
