Files
2025-02-26 09:54:30 +01:00

17 lines
397 B
Bash
Executable File

#!/bin/sh
[ $# -eq 0 ] && echo "usage: $0 <interface>" && exit 1
scriptpath="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
interface=$1
sudo ip a add 10.13.37.100/24 dev $interface
sudo dnsmasq --no-daemon \
--interface=$interface \
--dhcp-range=10.13.37.100,10.13.37.200,255.255.255.0,1h \
--dhcp-boot=bootmgfw.efi \
--enable-tftp \
--tftp-root="$scriptpath/tftp" \
--log-dhcp